Remove Tomcat Version From Error Pages
Idea Logged
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
Replies have been locked on this page!