How do I use Tomcats error-page and Apaches ErrorDocument directives together?
Location: http://www.jguru.com/faq/view.jsp?EID=492774 Created: Sep 7, 2001 Modified: 2002-04-18 07:27:16.127 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by Elodie TASIA (http://www.jguru.com/guru/viewbio.jsp?EID=434391 I suggest you to have both Apache and Tomcat know how to hande “their own” error documents. The reason for this is because you could have a situation where an error is generated by Tomcat and cases when a same error is generated by Apache. A simple example is with the Page Not Found (404) error: In a normal system you have Tomcat handling only servlets (usually /servlets/*) and jsp pages (*.jsp). Then when Apache receives a request that matches one of those directive, it will pass it to Tomcat. If a servlet or a jsp file don’t exists, then the 404 error is generated by Tomcat. At the same time, if the request contains page that is not a jsp or a servlet (maybe a typo: “index.jps”), then the 404 error is ge