How is trace disabled in tomcat?

Solution verified - Updated on

Request a new translation or translation update

A translation for your language preference does not exist. Click below to request a translation for your selected language.

Submit request

Environment

  • Red Hat Enterprise Linux
    • 6.x
    • 5.x
  • Red Hat Satellite 6

Issue

  • How is trace disabled in tomcat?
  • A server running tomcat is failing PCI audit due to track and trace being enabled; how are these disabled?

Resolution

  • Add the allowTrace="False" attribute to the HTTP connector in server.xml. For instance, this has been added to the default connector below:

    <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" 
               allowTrace="False" />
    
  • Satellite 6.2 has two connectors for tomcat.

#vi /etc/tomcat/server.xml
 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
                allowTrace="False" />

  <Connector port="8080" protocol="HTTP/1.1"
               redirectPort="8443" />
               allowTrace="False" />

This solution is part of Red Hat's fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.