tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Singleton <p...@jbgb.com>
Subject error-page for nonexistent context
Date Fri, 24 Feb 2006 21:03:26 GMT
(I am required to anonymiee a Tomcat 5.5 server from hackers
trying to discover its version etc.)

If I put this in conf/web.xml

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

*and* put an anon_error.jsp in every web app, then I can
replace the built-in error page.

But where will Tomcat look for /anon_error.jsp when a
(page within a) nonexistent context is requested?

Paul Singleton




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.0.0/268 - Release Date: 23/Feb/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message