.htaccess doesn't seem to be working on Apache

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

.htaccess doesn't seem to be working on Apache

Post 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,
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Maybe AuthConfig is not granted for that .htaccess/location.
See http://httpd.apache.org/docs/2.0/howto/auth.html
Post Reply