From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Description of problem:
When coding custom error docs, I found that an httpd directive for:
ErrorDocument 401 some-errordoc-file
works if 'some-errordoc-file' is html, but fails if the file is php. That is to
with .htaccess password control in place, when I click on a
password-protected link, instead of prompting me for a login,
the server immediately serves the error document instead.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. insert custom php error document (401) in apache config file
2. /etc/init.d/httpd reload
3. click on .htaccess password-protected URL
Actual Results: Error document served immediately
Expected Results: Browser should prompt for username, password
This problem is in the php.net bug database:
Thanks for the report. This will be fixed in a forthcoming erratum.
An errata has been issued which should help the problem described in this bug report.
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen
this bug report if the solution does not work for you.