Jump to content

Password Protection


DaveTomneyUK

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/55169-password-protection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.