Hairy DJ Posted February 3, 2012 Share Posted February 3, 2012 I tried to use .htaccess to password protect some files but instead it disabled them. Here is what I tried: <files ~"(file1|file2|ffile3).pl">AuthUserFile /home1/hairydj/public_html/_vti_pvt/service.pwdAuthGroupFile /home1/hairydj/public_html/_vti_pvt/service.grpAuthName EnterYourPasswordAuthType Basicrequire valid-user</files> Quote Link to comment Share on other sites More sharing options...
Ice IT Support Posted February 3, 2012 Share Posted February 3, 2012 Try this: <Files ~ "(file1|file2|file3).pl"> AuthUserFile /home1/hairydj/public_html/_vti_pvt/service.pwd AuthGroupFile /home1/hairydj/public_html/_vti_pvt/service.grp AuthName "Enter Your Password" AuthType Basic Order Allow,Deny require valid-user </Files> Quote Link to comment Share on other sites More sharing options...
Byron Posted February 4, 2012 Share Posted February 4, 2012 I've corrected his problem. He didn't have the correct path to his passwd file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.