I am currently having difficulties removing/ hiding the Tomcat version on my error page.
All the methods and steps that I have tried do not work, I have run through multiple solutions and checked each step accordingly. However, to no avail.. none of them works. Below is a list of what I have tried. I appreciate any tips/ suggestions. Thank you!
<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false" />
Created a ServerInfo.properties file in /lib/org/apache/catalina/util
server.info= Test
Modified the web.xml file with the following code and HTML files.
<error-page>
<error-code>500</error-code>
<location>/errors/500.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/errors/404.html</location>
</error-page>
4.Redirecting the error by using httpsError in the web.config file Here is the code and error that I got. (HTTP Error 500.19, error code 0x8007000d) And I have URL Rewrite installed. Sorry for the horrible images, I wasn't able to take a snippet.
Cause:
This problem occurs because the ApplicationHost.config or Web.config file contains a malformed or unidentified XML element. IIS can't identify the XML elements of the modules that are not installed. For example, IIS URL Rewrite module.
Resolution:
Use one of the following methods: