You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/09/29 17:58:33 UTC

DO NOT REPLY [Bug 13121] New: - ErrorDocument definitions do not work with Auth.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13121>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13121

ErrorDocument definitions do not work with Auth.

           Summary: ErrorDocument definitions do not work with Auth.
           Product: Apache httpd-2.0
           Version: 2.0.42
          Platform: Other
               URL: http://www.crypticallyverbose.net/
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mordeth@pankurokku.com


in .htaccess:

#  Error document handling:

ErrorDocument   401     /error.php?error=401
ErrorDocument   403     /error.php?error=403
ErrorDocument   404     /error.php?error=404

#  Content protection:

AuthUserFile /home/mordeth/public_html/access/.passwd
AuthGroupFile /dev/null
AuthName "Protected Area"
AuthType Basic

<Limit GET POST>
  require user  mordeth
</Limit>

will return the 401 error page without prompting for a username and password.

if the 3 ErrorDocument lines are added to httpd.conf instead of to the .htaccess
file, the server 403s the 401 page, despite the fact that it is able to read it.

very bizarre.

that .htaccess works perfectly under Apache 1.3.26, by the way.

it took me a long time to figure out that it was the ErrorDocument directives
that were causing a couple of my domains to not ask for username and password.

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