[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] .htaccess for dummies



I am trying to setup .htaccess on a raq4, but it's not working. This is what
I did:

1) I Put the following at the bottom of /etc/httpd/conf/access.conf
<Directory /home/sites/site1/web/can>
AllowOverride All
Options All
</Directory>

2) Created a .htaccess file in teh directory to be protected as follows:
#Access file
order allow,deny
allow from all
require valid-user
AuthPAM_Enabled off
Authname canuauthme
Authtype Basic
AuthUserFile /home/sites/site1/web/can/robboard/.htpasswd

3) I created a password file in the directory to be protected
(/home/sites/site1/web/can/robboard) by typing:
htpasswd -c .htpasswd [username]

4) I chown the 2 files to admin.

5) I chmod the 2 files to 755

6) I restarted the server

When I go the directory I want to protect, I am not prompted for a password.
Any thoughts about what I missed?