PHP 4.0 Bug #4925: .htaccess problem with custom 401 ErrorDocument (Apache 1.3.12, PHP 4.0.0)
| From: | tapio dot ryhanen at oulu dot fi | Date: | Fri, 09 Jun 2000 07:34:19 +0000 |
| Subject: | PHP 4.0 Bug #4925: .htaccess problem with custom 401 ErrorDocument (Apache 1.3.12, PHP 4.0.0) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20678@lists.php.net to get a copy of this message | ||
From: tapio.ryhanen@oulu.fi
Operating system: Redhat 6.0 with kernel 2.2.16
PHP version: 4.0.0 Release
PHP Bug Type: Other
Bug description: .htaccess problem with custom 401 ErrorDocument (Apache 1.3.12, PHP 4.0.0)
As soon as I specify
ErrorDocument 401 /error.html
for my virtual server, I can't log into a secured directory under it using .htaccess/htpasswd,
I get an error page instead.
I've specified other Errodocs for 403/404/500, etc. and I can log in fine with
the username/password prompt for http://www.virtualhost.com/foo/ but as soon
as I add the ErrorDocument 401 /error.html for virtualhost.com in httpd.conf I
get an error message when I goto http://www.virtualhost.com/foo/ instead of
the user/pass box.
I'm using Apache 1.3.12 with PHP 4.0.0 on Linux 2.2.16.
Specifying custom errordocs worked just fine with php version 3.0.15 and Apache 1.3.12. After
upgrading to PHP v. 4.0.0 custom errordocs no longer work. Any ideas?