httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject [users@httpd] custom-error with httpd and tomcat
Date Mon, 02 Jun 2008 12:40:57 GMT
Hello all,

I have an application that is build in two tiers, where Apache httpd is
before an Apache Tomcat where I execute an Apache Cocoon web app.

I tried with 
ErrorDocument 503 "error 1"
ErrorDocument 500 "error 2"

Now if I do not start tomcat I see the "error 1" page like I expected
with the header:
Status=Service Temporarily Unavailable - 503

However when my cocoon app is returning a page with stacktrace and the
http header 500, the httpd is ignoring the ErrorDocument.
Status=Internal Server Error - 500

Discussing the issue with my colleagues it seems that the ErrorDocument
does not analysis the header of the response but only will use the
directive if the error occurred in the same httpd server.

Maybe it is the way we are accessing the tomcat from our httpd server.
We are using simple "RewriteRule". 

How can I tell httpd to use the ErrorDocument when my servlet response
with Status=Internal Server Error - 500?

TIA for any information.

Thorsten Scherler                       
Open Source Java                      consulting, training and solutions

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message