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>
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>
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now