httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34094] - ErrorDocument for 500 error can't be in Directory Container
Date Sat, 02 Apr 2005 04:43:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34094>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34094





------- Additional Comments From stonemonkey@anodyneoz.com  2005-04-02 06:43 -------
(In reply to comment #0)
> I'm not sure whether this is a mistake in the Apache documents or a bug in the
> code, but according the Apache HTTPD document here:
> 
> http://httpd.apache.org/docs-2.0/mod/core.html#errordocument
> 
> The context for ErrorDocument is listed as "server config, virtual host,
> directory, .htaccess"
> 
> I have a directory container setup like this:
> 
> <Directory />
>     ErrorDocument 403 /globalerrors/403.php
>     ErrorDocument 404 /globalerrors/404.php
>     ErrorDocument 500 /globalerrors/500.php
>     Options [masked from this post for security]
>     IndexOptions [masked from this post for security]
>     AllowOverride [masked from this post for security]
> </Directory>
> 
> The 403 and 404 error documents work as expected, but when I try to trigger the
> 500 error document, Apache instead displays the normal Apache stock 500 error
> document.   After consulting on this with some folks in the apache IRC channel,
> I discovered that moving the ErrorDocument 500 directive outside of the root
> directory container and into the main config, the custom 500 error starts to
> work.  So I figure that this is either a mistake in the documentation or a bug
> in Apache httpd.

I had exactly this problem with an ErrorDocument for error 414.  Custom error
document would not work in .htaccess or directory container.  (Custom 404 error
documents with exactly the same details would work.) Only solution found to work
was to put entry in main confiuguration as for original error 500 report.
running Server Version: Apache/2.0.52 (Fedora) Server Built: Nov 11 2004 10:31:42

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message