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 can I use a JSP as an Apache ErrorDocument — so Apache will display its errors using my JSP?

0
Posted

How can I use a JSP as an Apache ErrorDocument — so Apache will display its errors using my JSP?

0

Location: http://www.jguru.com/faq/view.jsp?EID=458488 Created: Jul 19, 2001 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by Stefan Ehrlich (http://www.jguru.com/guru/viewbio.jsp?EID=448177 [ I want to use a JSP as ErrorDocument, so I put the line ErrorDocument 404 /404.jsp in my httpd.conf-file and created the jsp. ] Maybe the directive should be written like this: ErrorDocument 404 http:///404.jsp This should execute a redirect-like, so should generate a new request to the system, so the apache process should restart and the 404.jsp should be reached. It worked for me… (Apache 1.3.19, Tomcat 3.2.2, Resin 1.2.

Related Questions

What is your question?

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

Experts123