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 configure Apache to redirect 404 errors to a Tomcat servlet, without losing any POSTed form data from the original request?

0
Posted

How do I configure Apache to redirect 404 errors to a Tomcat servlet, without losing any POSTed form data from the original request?

0

Location: http://www.jguru.com/faq/view.jsp?EID=416241 Created: May 6, 2001 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by Alex Levy (http://www.jguru.com/guru/viewbio.jsp?EID=300869 According to the Apache documentation the ErrorDocument configuration directive should be used exactly for this purpose. The documentation is located at http://httpd.apache.org/docs/mod/core.html#errordocument”, and in the http.conf.default file that is generated during the installation there are a few examples: # # Customizable error response (Apache style) # these come in three flavors # # 1) plain text #ErrorDocument 500 “The server made a boo boo. # n.b. the single leading (“) marks it as text, it does not get output # # 2) local redirects #ErrorDocument 404 /missing.html # to redirect to local URL /missing.html #ErrorDocument 404 /cgi-bin/missing_handler.pl # N.B.: You can redirect to a script or a document using server-side-includes. #

Related Questions

What is your question?

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

Experts123