DaveTomneyUK Posted June 11, 2007 Share Posted June 11, 2007 Hi, I am trying to password protect 2 folders using .htaccess but if I add the below code I keep getting a 500 error. <Directory /home/user1/web-root/adm> AuthType Basic AuthName "Restricted Area" AuthUserFile /home/user1/.htadm AuthGroupFile "/dev/null" Require valid-user </Directory> <Directory /home/user1/web-root/mod> AuthType Basic AuthName "Restricted Area" AuthUserFile "/home/user1/.htmd" AuthGroupFile "/dev/null" Require valid-user </Directory> 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.