Hi,

I am looking for a way to globally change the error pages on java.lang.Exception (stacktrace) and 404 because they contain information that is best kept secret on production servers. I realise you can do this on a per application basis with WEB-INF/ web.xml but I'm looking at this more from the side of a system administrator that would not really want to be altering per application configurations.

You can achieve blank pages by adding into CATALINA_HOME/conf/web.xml

 <error-page>
   <error-code>404</error-code>
   <location>/non_existent_file.jsp</location>
 </error-page>

 <error-page>
   <exception-type>java.lang.Exception</exception-type>
   <location>/non_existent_file.jsp</location>
 </error-page>

This only works (or technically fails) because non_existent_file.jsp does not exist in each web application, but it does prevent the problem. Any suggestions for a better solution?

Thanks,
Darren


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to