 |
Apache2Triad Help, Support and Development The apache2triad help , support and development forums
|
| View previous topic :: View next topic |
| Author |
Message |
NCH
Joined: 30 Oct 2006
Posts: 3
|
| Posted: Mon Oct 30, 2006 7:08 pm Post subject: .htaccess and custom "authentication failed" messa |
|
|
Hello.
I am using .htaccess and .htpasswd on three domains using vhost. Everything is working fine with a succesful user/password combination login.
My problem is that once the user/password prompt comes up it just stays there until the correct information is entered or the user presses cancel. Is there any way to have it redirect to a custom error message based on a failed login attempt, so that the user won't have to hit cancel. Ideally, I would like to send a user who does not have a user/password to a page on the same domain that would give them my email address at that domain so that they can email me and I can add them to the .htaccess file.
I realize php might be an easier way to accomplish this, but I am not familiar with it and hope I can acheive the desired result with .htaccess and .htpasswd.
Thank you.
NCH |
|
| Back to top |
|
Joshua Meadows (DemoRic)
Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas
|
| Posted: Fri Nov 03, 2006 4:24 pm Post subject: |
|
|
the only thing you can do in this instance is change the 401 redirect page in your .htaccess. When they hit cancel it will bring up your custom page.
Or, you can change to a different password management system.
.htaccess example
Quote: ErrorDocument 401 /error.php?401 |
|
| Back to top |
|
| |
|