Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Normally, tomcat runs using http on port 8080. Tomcat can be configured to use another port, as well as be configured to use https.

After installation is complete you may set up https. This guide assumes you have knowledge of SSL.

Your certificate needs to be imported into a keystore with the alias tomcat. The file $TOMCAT_HOME/conf/server.xml needs to be updated to indicate that tomcat should use SSL. An example of lines that should be added/modified are:

Code Block
themeConfluence
languagexml
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="/var/lib/tomcat7/conf/tomcat.keystore" 
keystorePass ="mypassword"
clientAuth="false" sslProtocol="TLS" />

Restarting tomcat will now have your mobile server running on

...

https://yourhost.com:8443/mobileserver in addition to the http URL listed in a prior section.

Warning
If you do not wish http to be used, comment out the lines which list that connector in the server.xml file.