tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akash Jauhar" <ajau...@sapient.com>
Subject RE: Problem using jsp to handle 404s from nonjsps
Date Fri, 25 Jun 2004 19:14:46 GMT
Assuming that you have an apache in front of tomcat configure apache to
specify that 404.jsp is your custom page for handling 404 errors for
content that is served by apache. This should help you log all broken
links as well as missing images and other content

Hope this helps

Apache directive that needs to be modified is as follows

ErrorDocument 404 </cgi-bin/error404.cgi> or </404.jsp>




Akash



-----Original Message-----
From: Joseph Shraibman [mailto:jks@selectacast.net] 
Sent: Friday, June 25, 2004 11:39 AM
To: Tomcat Users List
Subject: Problem using jsp to handle 404s from nonjsps 


I have a 404.jsp for logging broken links.  I get the missing page by 
doing this:

String url =  request.getRequestURL().toString();

This works when the missing page is a jsp.  When it is something else 
like a .html, my url variable ends up with the url to my 404 handler.  I

assume this is a problem with apache forwarding to 404.jsp.  How can I 
work around this?

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


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


Mime
View raw message