|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am trying to set up the .htaccess authentication system such that a customized error page is displayed when an unauthorized user tries to access the protected directory.
Can the Require Directive, Require Valid-User and Error Directive, ErrorDocument 401 /Error1.html be used together in a single .htaccess file? Also, when a wrong ID/PW combo is provided, the dialog box that asks the ID/PW pops up a total of 3 times before the canned 401 Error message (unauthorized access) gets displayed. How can I change setting so that the Error message gets displayed after the wrong user ID/PW is provided in the first instance itself? Thanks. Stephen |
|
|||
|
Make sure your error page is NOT in the protected directory.. (Is it at the root level?)
Make sure the server name used in the .htaccess file is the same as the ServerName used in the httpd.conf (if you use the ServerAlias, the login box will resolve back to the ServerName) Likely scenario.. Dialog 1 = initial request Dialog 2 = Revolved to true ServerName Dialog 3 = Second attempt for password then Failure..loads standard 401
__________________
Hardcore Programming Solutions and Coffee Drinker |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |