DaveTomneyUK
06-11-2007, 09:38 PM
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>
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>