[Wolves] password protect a directory on my site
Wayne Morris
wayne at machx.co.uk
Mon Feb 27 20:34:04 GMT 2006
Baza wrote:
> Hi folks,
>
> I'm trying to password protect a directory in /var/www/passwordthisone
>
> I've dropped this .htaccess file into passwordthisone
>
> AuthUserFile /home/user/.htpasswd
> AuthGroupFile /dev/null
> AuthName "Private Area"
> AuthType Basic
> <Limit GET POST>
> require valid-user
> </Limit>
>
> and i've set a password for user, but it still seems to let anyone in
> without asking for the password, what am I doing wrong?
>
> Baza
Have you edited your httpd.conf to show AllowOveride AuthConfig? similar
to this
Directory "/usr/local/apache/htdocs/admin">
AllowOverride AuthConfig
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
This is a useful tutorial
http://www.linuxhelp.ca/guides/htaccess/
More information about the Wolves
mailing list