Password Protection |
Password Protection |
MR. T |
Jun 11 2007, 05:35 PM
Post
#1
|
Group: Members Posts: 2 Joined: 10-June 07 Member No.: 3,050 |
Hi,
I am trying to password protect 2 folders using .htaccess but if I add the below code I keep getting a 500 error. CODE <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> |
andyf |
Jul 7 2007, 06:50 AM
Post
#2
|
Group: Members Posts: 7 Joined: 20-June 07 Member No.: 3,129 |
If you create .htaccess on your home computer and FTP it into your account, make sure you upload this file as ASCII, not binary!
If you done this then try re-transfer .htaccess file using FTP ensuring that you are transferring it in ASCII mode. Also you have placed double quotes in your password file location this could be the reason for getting such error. QUOTE AuthUserFile "/home/user1/.htmd" |
Lo-Fi Version | Time is now: 26th April 2024 - 09:52 PM |