Well, your .htaccess file looks ok (apart from the fact that the password
file should not be in a web directory).

Try adding AuthConfig to the httpd.conf file as below:

<Directory /home/httpd/html>
AllowOverride AuthConfig .........

Also make sure that httpd.conf contains the following line:

AccessFileName .htaccess

Paul


-----Original Message-----
From: Gaurav Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 24, 1999 9:10 PM
To: linux Newbie
Subject: .htaccess problems 


Hi,
        I am having problems setting up .htaccess security features on my
linux Red
Hat 6.0 machine running Apache web server.
        The httpd.conf is the installation default , and i still have'nt
made many
changes to it ,
and i placed my .htaccess and .htpasswd file in /home/httpd/html directory
the .htacess file reads:

AuthName Webmaster
AuthType Basic
AuthUserFile /home/httpd/html/.htpasswd
require valid-user


and i also made sure that allow override is set to all, by editing th
httpd.conf file uch that:

<snip>

<Directory /home/httpd/html>
Options Indexes Includes FollowSymLinks
AllowOverride All
# order allow,deny
# allow from all
</directory>

<snip>

I have read the Apache FAq too, but still unable to setup the security, as
the file is totally being ignored and i am not being asked the user/pass.
Please help !
Thanks a lot in advance,
Regards,
Gaurav.

Reply via email to