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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Matt Alexander
Date:  
Subject: 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>