the httpd.conf file is empty, but the /etc/apache2/sites-available/default file had many-many configuration in it, i modified the:
and it works!!
2008/7/23 Bob Cox <firstname.lastname@example.org>:
On Wed, Jul 23, 2008 at 07:54:59 +0200, Lóránd Erik (email@example.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
> 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?
Try it without the "<Limit GET POST>" etc.
All you should need is:
AuthName "Private Area"
Please let us know if that helps.
Bob Cox. *Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org