[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] .htaccess &.htpasswd
- Subject: RE: [cobalt-users] .htaccess &.htpasswd
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Wed Feb 20 11:43:27 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I've tried to secure a webpage for a client request,
> but it doesn't let me in, though I know the password.
>
> .htaccess looks like this:
>
> AuthUserFile /home/sites/site398/web/test2/.htpasswd
> AuthGroupFile /dev/null
> AuthName ByPassword
> AuthType Basic
>
> <Limit GET>
> require user pumpkin
> </Limit>
>
1. Don't put the .htpassword in the same directory that you are protecting.
2. Here's a .htaccess file example.
#Access File
order allow,deny
allow from all
require valid-user
Authname "Managment Area"
AuthPAM_Enabled off
Authtype Basic
ErrorDocument 404 /index.html
AuthUserFile /home/sites/site398/-htaccess
2a.So you would have produced the htaccess file with the
command..
/usr/sbin/htpasswd -c /home/sites/site398/-htaccess pumpkin
3. Wow, 398 sites on a RAQ3.
4. Expect some mild flamming for not looking this often repeated question in
the archives.
Paul