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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess files driving me mad

Status
Not open for further replies.

oohoohoohooh

Programmer
Apr 30, 2005
55
GB
Hi, I did a search on google to help password protect a directory. I tried the following files and placed them inside the folder I wish to password protect (c:/ and when I go to it asks me for the password but when I put the details (I generated the password using an online tool) it does not work. I've tried loads of different ways now but nothing seems to work. I'd appreciate if anyone could help. Thanks

Here's my last attempt.

.htaccess:

AuthUserFile "c:/AuthName "private zone"
AuthType Basic

<Limit GET POST>
require user lee
</Limit>

.htpasswd:

lee:bKWWuR6YzOcjs
<Limit GET POST>
require group admins
</Limit>
 
When I have that problem, the most often fix is to make sure that the user as which Apache is running has permission to read the file.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top