Wednesday, 14 September 2022

Hide details from Tomcat error page


Steps

server.xml file needs to edited and a new valve needs to be added.

  1. Edit the file <install-directory>/conf/server.xml
  2. Search for the parameters <Host name=
  3. Just below that line, insert the following parameters 

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

  5. The Error page will look like follows now,



No comments:

Post a Comment