|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21074 PHP doesn't work with 401 (Auth) ErrorDocument and Apache2
Submitted: 2002-12-18 04:51 UTC Modified: 2003-07-10 23:25 UTC
Avg. Score:4.5 ± 0.5
Reproduced:11 of 11 (100.0%)
Same Version:5 (45.5%)
Same OS:3 (27.3%)
From: dreamlab at epost dot de Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.2-dev OS: Windows XP
Private report: No CVE-ID: None
 [2002-12-18 04:51 UTC] dreamlab at epost dot de
Whenever I use a .php-file as a 401 ErrorDocument, Apache2 fails and shows the file specified as ErrorDocument.

My .htaccess contains
ErrorDocument 401 /error.php

This absolutely works with Apache 1.3.27, but not with ANY Apache 2.0.x. This also still occurs with PHP 4.3RC3.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-10 23:25 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 02:01:28 2024 UTC