in reply to About .htaccess
Unfortunately you haven't told us what works.
If $ENV{REMOTE_USER} is never being populated (even when you supply correct user and password), then you must ask why your .htpasswd is not being recognised by Apache. This link appears to have some information about .htaccess files.
If, on the other hand, $ENV{REMOTE_USER} works when you supply correct user name and password, and fails when you supply the wrong user name or password, then the question is about Apache's error handling in the case of a failed authorisation attempt.
I do not know for sure, but it may be the case that Apache requires a separate file to display for handling error conditions (such as invalid username/password) so that your script does not receive the error response. In this case you may with to configure Apache with a specific error document using the syntax found at this website.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: About .htaccess
by Nik (Initiate) on Jun 14, 2005 at 10:25 UTC | |
by Nik (Initiate) on Jun 14, 2005 at 12:48 UTC |