Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use Tomcats error-page and Apaches ErrorDocument directives together?

0
Posted

How do I use Tomcats error-page and Apaches ErrorDocument directives together?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123