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] New: - ErrorDocument for 500 error can't be in Directory Container
Date Mon, 21 Mar 2005 03:05:37 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

           Summary: ErrorDocument for 500 error can't be in Directory
                    Container
           Product: Apache httpd-2.0
           Version: 2.0.51
          Platform: PC
               URL: http://suso.org/
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: suso@suso.org


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.

-- 
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