Page 1 of 1

.htaccess doesn't seem to be working on Apache

Posted: Sun Nov 19, 2006 7:06 pm
by impulse()
Hello.


I'm running Apache on a Fedora box and I've recently tried to add password protection to a directory using a .htaccess file. I'm also added the .htpasswd file with a user which is authorised to view that directory but Apache seems to be ignoring the fact that I have a .htaccess file in the directory I'm accessing from a web browser. Apaches configuration is setup to search for a .htaccess file before showing the contents of a directory.
Can you see anything wrong with this .htaccess file?
AuthName "Prove yourself"
AuthType Basic
AuthUserFile /directory/i/want/to/protect/.htpasswd
Require valid-user
Regards,

Posted: Sun Nov 19, 2006 7:45 pm
by volka
Maybe AuthConfig is not granted for that .htaccess/location.
See http://httpd.apache.org/docs/2.0/howto/auth.html