[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: .htaccess for dummies
- Subject: [cobalt-users] Re: .htaccess for dummies
- From: "Linuxman" <linuxman@xxxxxxxxxxxxxxxx>
- Date: Wed May 1 17:32:02 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I figured out what I did wrong....
Finishing the .htacccess setup, I typed 'httpd restart' to restart the http
server, but that is not enough. I rebooted the server, and its working
perfectly.
I assembled the following .htaccess for dummies instructions to help others
in the future:
Setting up .htaccess
1) Put the following at the bottom of /etc/httpd/conf/access.conf
<Directory /home/sites/site1/web/can>
AllowOverride All
Options All
</Directory>
2) Change AllowOverride from 'None' to 'All' in 2 places in
/etc/httpd/conf/access.conf if not already done
3) Create a .htaccess file in the directory to be protected as follows:
#Access file
order allow,deny
allow from all
require valid-user
AuthPAM_Enabled off
Authname PleaseAuthMe (Make this whatever name you want the public to see)
AuthUserFile /home/sites/site00/web/.htpasswd (Change this to your desired
directory)
4) Create a password file in the directory to be protected
(/home/sites/site00/web....) by typing:
htpasswd -c .htpasswd [username]
5) chown the 2 files to admin.
6) chmod the 2 files to 755
7) Rebbot the server - typing 'httpd restart' is not enough
Fred