Wiki source code of Formcycle von Root-Domain aufrufen
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | (% contenteditable="false" tabindex="-1" %) | ||
| 2 | ((( | ||
| 3 | {{content/}} | ||
| 4 | ))) | ||
| 5 | |||
| 6 | By default, {{html}}<span class="xm-smallcaps">Xima® Formcycle</span>{{/html}} must be opened from the subdomain such as {{code language="none"}}/formcycle{{/code}}, for example {{code language="none"}}http://formcycle.eu/formcycle/{{/code}}. When it becomes necessary to open {{html}}<span class="xm-smallcaps">Xima® Formcycle</span>{{/html}} from the root domain, eg. {{code language="none"}}http://naiad.formcloud.de{{/code}}, the following Tomcat settings need to be changed. | ||
| 7 | |||
| 8 | == Using ROOT directory == | ||
| 9 | |||
| 10 | In the {{code language="none"}}TOMCAT_VERZEICHNIS/webapps{{/code}} older under ROOT delete all files. Then create a new index.html with the following content: | ||
| 11 | |||
| 12 | {{code language="html"}} | ||
| 13 | <!DOCTYPE html> | ||
| 14 | <html> | ||
| 15 | <head> | ||
| 16 | <meta http-equiv="Refresh" content="0; URL=formcycle"> | ||
| 17 | </head> | ||
| 18 | </html> | ||
| 19 | {{/code}} | ||
| 20 | |||
| 21 | == Using configuration file == | ||
| 22 | |||
| 23 | === Creating a new configuration file === | ||
| 24 | |||
| 25 | Go to the directory and create a new file named {{code language="none"}}ROOT.xml{{/code}} when it does not exist already. | ||
| 26 | |||
| 27 | === Move the file //formcycle.war// to the root domain === | ||
| 28 | |||
| 29 | By default, the {{html}}<span class="xm-smallcaps">Xima® Formcycle</span>{{/html}} application file //formcycle.war// is located at {{code language="none"}}TOMCAT_DIRECTORY/webapps{{/code}}. Move this file to some directory outside the //webapps// directory, such as for example {{code language="none"}}TOMCAT_DIRECTORY/mywebapps/formcycle.war{{/code}}. | ||
| 30 | |||
| 31 | === Deleting the ROOT directory === | ||
| 32 | |||
| 33 | In case there exists a directory named //ROOT// at {{code language="none"}}TOMCAT_DIRECTORY/webapps{{/code}} already, you need to delete this directory before starting Tomcat. By default, the ROOT directory contains the welcome pages of Tomcat. | ||
| 34 | |||
| 35 | === Edit the configuration file === | ||
| 36 | |||
| 37 | You must modify the context path so that it point to the new path of the //formcycle.war//. When the file has been moved to {{code language="none"}}TOMCAT_DIRECTORY/mywebapps/formcycle.war{{/code}}, the configuration file must be changed as follows. | ||
| 38 | |||
| 39 | (% aria-label="macro:code widget" contenteditable="false" role="region" tabindex="-1" %) | ||
| 40 | ((( | ||
| 41 | {{code language="xml"}} | ||
| 42 | <Context path="" docBase="TOMCAT_DIRECTORY/Tomcat 8.0/mywebapps/formcycle.war"> <WatchedResource>WEB-INF/web.xml</WatchedResource> </Context> | ||
| 43 | {{/code}} | ||
| 44 | ))) | ||
| 45 | |||
| 46 | After restarting Tomcat {{html}}<span class="xm-smallcaps">Xima® Formcycle</span>{{/html}} can be opened from the root domain. |