Configure Apache Tomcat configuring-tomcat
ÃÛ¶¹ÊÓƵ Campaign uses an embedded web servlet called Apache Tomcat to process HTTP/HTTPS requests between the application and any external interface (including Client Console, tracked URL links, SOAP calls, and others). There is often an external web server (usually IIS or Apache) in front of this for any external-facing ÃÛ¶¹ÊÓƵ Campaign instances.
Learn more about Tomcat in Campaign and how to locate your Tomcat version in this page.
-
Starting Campaign v7.4.1, Tomcat 10.1 is the default version.
-
ÃÛ¶¹ÊÓƵ Campaign Classic does not use WebSocket and HTTP2 protocols.
Default port for Apache Tomcat default-port-for-tomcat
When the 8080 listening port of the Tomcat server is already busy with another application required for your configuration, you need to replace the 8080 port with a free one (8090 for instance). To change it, edit the server.xml file saved in the /tomcat-X/conf directory of the ÃÛ¶¹ÊÓƵ Campaign installation folder.
Then modify the port of the JSP relay pages. To do this, change the serverConf.xml file saved in the /conf directory of the ÃÛ¶¹ÊÓƵ Campaign installation directory.
<serverConf>
...
<web controlPort="8005" httpPort="8090"...
<url ... targetUrl="http://localhost:8090"...
Map a folder in Apache Tomcat mapping-a-folder-in-tomcat
To define customer specific settings, you can create a user_contexts.xml file in the /tomcat-X/conf folder, which also contains the contexts.xml file.
This file will contain the following type of information:
<Context path='/foo' docBase='../customers/foo' crossContext='true' debug='0' reloadable='true' trusted='false'/>
If necessary, this operation can be reproduced on the server-side.
Hide the Tomcat error report hide-tomcat-error-report
For security reasons, we strongly recommend that you hide the Tomcat error report. Follow these steps:
-
Open the server.xml file located in the /tomcat-X/conf directory of the ÃÛ¶¹ÊÓƵ Campaign installation folder:
/usr/local/neolane/nl6/tomcat-X/conf
-
Add the following element at the bottom after all existing context elements:
code language-xml <Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false"/>
-
Restart the nlserver and Apache web servers.