Configure Tomcat configure-tomcat
On the Individualization server, modify Tomcat’s conf/server.xml file to include additional information in the access log. You can use this information for reporting purposes.
-
Locate the configuration for the
AccessLogValvein server.xml and modify the pattern as shown here:code language-none <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %{x-forwarded-for}i %l %u %t "%r" %s %b %{request-id}r" resolveHosts="false"/>%{x-forwarded-for}iwill record the value of thex-forwarded-forheader. If you use an Apache reverse proxy to forward requests to the Tomcat server, this header will contain the original client’s IP address, whereas%hrecords the Apache server’s IP address.%{request-id}rwill record the request identifier, which corresponds to the request ID contained in the Individualization application log. -
Edit conf/server.xml and set the
unpackwarsproperty to false.For both the Individualization and Key Generation servers, it is a good idea to edit conf/server.xml and set the
unpackwarsproperty tofalse. Otherwise, when you update the WARs, you may have to clean out the unpacked WAR folders as well.