Hairy DJ Posted February 3, 2012 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
Ice IT Support Posted February 3, 2012 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
Byron Posted February 4, 2012 Posted February 4, 2012 I've corrected his problem. He didn't have the correct path to his passwd file. Quote
Recommended Posts