Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ErrorDocument 401

Status
Not open for further replies.

newjim

Programmer
Sep 8, 2001
21
CA
I have an
ErrorDocument 401 /401.php

line in my .htaccess file in https-enabled document root. When a user enters a bad login or password, Apache gives me the default 401 message, then

Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request

which indicates that another 401 error was generated in trying to go to the custom error document itself, 401.php. Catch 22!

I know that the ErrorDocument 401 line works, because if I put

ErrorDocument 401 "You have entered an invalid login or password

it prints that to the screen.

Any suggestions?
 
is your 401.php file in an access controlled directory?

That would cause the problem you are having ;)

---
John Hoke
If you found this post helpfull, please click below and let us know!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top