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

[OT] Re: .htaccess?



On Wed, Jul 23, 2008 at 1:54 AM, Lóránd Erik <lammmer80@gmail.com> wrote:
> Why doesn't .htaccess rules work, when i example write this in it:
>
> AuthUserFile /home/username/.htpasswd
> AuthGroupFile /dev/null
> AuthName "Private Area"
> AuthType Basic
> <Limit GET POST>
> require valid-user
> </Limit>
>
> i just want to secure a folder by password, on apache2 [i just installed it,
> it works, but i can still see the folder, and it doesn't ask for password, i
> have .htpasswd in username/.htpasswd]
>
> what am i missing?

A lot.  There's more to password protection in Apache than simply
dropping a .htaccess file in a directory.  This is way, way OT, btw,
but what you almost certainly need to do is to AllowOverrideAll for
your directory before Apache will allow it to have control over
access.  It's all in the documentation.

Patrick


Reply to: