php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4925 .htaccess problem with custom 401 ErrorDocument (Apache 1.3.12, PHP 4.0.0)
Submitted: 2000-06-09 09:34 UTC Modified: 2004-09-03 18:01 UTC
From: tapio dot ryhanen at oulu dot fi Assigned: zak (profile)
Status: Closed Package: *General Issues
PHP Version: 4.0.0 Release OS: Redhat 6.0 with kernel 2.2.16
Private report: No CVE-ID: None
 [2000-06-09 09:34 UTC] tapio dot ryhanen at oulu dot fi
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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 20:20 UTC] zak@php.net
I will try to confirm this bug.
 [2000-08-23 18:26 UTC] zak@php.net

 [2000-11-08 18:48 UTC] sniper@php.net
Does this still happen with latest snapshot from http://snaps.php.net ??

--Jani
 [2000-12-07 11:15 UTC] sniper@php.net
No feedback.
 [2004-09-03 18:01 UTC] mfischer@php.net
This bug has been fixed in 4.0.2
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC