Remove Tomcat Version From Error Pages
Completed
When an error page is displayed, the Apache Tomcat version is shown:
Can this be hidden?
When an error page is displayed, the Apache Tomcat version is shown:
Can this be hidden?
While it's not directly possible to hide this version, a custom error page can be provided to Tomcat. This can be implemented in the <YellowfinInstall>/appserver/webapps/ROOT/WEB-INF/web.xml:
This will prevent the default Tomcat error pages which show the version. I am logging this as an Enhancement to consider developing custom error pages that will ship with the product, however in the meantime your own webpage can be supplied as above.
Please note the above configuration must be at the bottom of your web.xml file above the </webapp> tag. In addition the errors folder must exist inside the <YellowfinInstall>/appserver/webapps/ROOT folder and must contain the custom HTML files.
Thanks, Ryan
While it's not directly possible to hide this version, a custom error page can be provided to Tomcat. This can be implemented in the <YellowfinInstall>/appserver/webapps/ROOT/WEB-INF/web.xml:
This will prevent the default Tomcat error pages which show the version. I am logging this as an Enhancement to consider developing custom error pages that will ship with the product, however in the meantime your own webpage can be supplied as above.
Please note the above configuration must be at the bottom of your web.xml file above the </webapp> tag. In addition the errors folder must exist inside the <YellowfinInstall>/appserver/webapps/ROOT folder and must contain the custom HTML files.
Thanks, Ryan
This can now be achieved as follows:
<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false"/>
This can now be achieved as follows:
<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false"/>
Replies have been locked on this page!