Difference between revisions of "Apache Tomcat Server - Production mode and server hardening"

 
Line 7: Line 7:
 
     showReport="false"  
 
     showReport="false"  
 
     showServerInfo="false"/></pre>     
 
     showServerInfo="false"/></pre>     
 +
 +
Change also the index.jsp file (or similar) in the "ROOT" folder which is an example page.
 +
<pre>webapps/ROOT</pre>
  
 
[[Category: Tomcat]]
 
[[Category: Tomcat]]
 
[[Category: Security]]
 
[[Category: Security]]

Latest revision as of 16:12, 14 February 2020

Please add these settings to use your Apache Tomcat Server in production mode.

Add this to the section "<host>" in the file server.xml (in the folder "conf"):

<Valve className="org.apache.catalina.valves.ErrorReportValve"
    showReport="false" 
    showServerInfo="false"/>

Change also the index.jsp file (or similar) in the "ROOT" folder which is an example page.

webapps/ROOT