Trying to get htaccess to work...or...man, what am I doing w…

Page principale
Attachements:
Message en tant que courrier électronique
+ (text/plain)
Supprimer ce message
Répondre à ce message
Auteur: Matt Alexander
Date:  
Sujet: Trying to get htaccess to work...or...man, what am I doing wrong!
So what happens when you browse to:

http://localhost/test/.test

???

Your httpd.conf file should be configured to automatically block the
loading of any files that start with .ht. So you should name the
AuthUserFile something like .htpasswd instead. Also, it wouldn't hurt to
move this file out of the webtree and put it in another directory that the
webserver has read access to.
~M


On Tue, 1 Oct 2002, Anthony Hologounis wrote:

> That was it!
>
> the missing piece was this in the htpd.conf file
>
> <Location /test/>
> AuthName "restricted stuff"
> AuthType Basic
> AuthUserFile /var/www/test/.test
> require valid-user
> </Location>