Page 1 of 1

.htaccess not working at all.

Posted: Tue Jan 17, 2006 6:10 am
by okanem
I have created a .htaccess file in the htdocs folder of Apache running on XP

The file is as follows


ErrorDocument 401 rejection.html
AuthUserFile .htpass
AuthGroupFile /dev/null
AuthName "cws"
AuthType Basic
require valid-user


To make things simple i created the .htpass file in the htdocs folder too using the htpasswd command.

The password file looks fine and displays the user and pass ok.

When I go to index.php on IE5, it allows me to view it fine without asking for auth'.

What am I doing wrong??

Please Help
Okanem

Posted: Tue Jan 17, 2006 11:30 am
by Chris Corbyn
mod_auth isn't installed perhaps?

Posted: Tue Jan 17, 2006 12:03 pm
by redmonkey
By default Apache is configured with AllowOveride None, I'm pretty sure when this directive is set .htaccess files are not parsed at all. Have you changed the AllowOveride directive?