htpasswd on a directory
Hi,I am creating a passwd on a directoy with the help of htpasswd. But its not working and does not prompt for passwd.The .htaccess I have created is a under.
------------------------.htaccess------------------------------------------
AuthUserFile /var/www/html/.htpasswd
AuthName Admins
AuthType Basic
<Limit GET>
require valid-user
</Limit>
------------------------------------------------------------------------------
Then I use
#htpasswd -c /var/ww/html/.htpasswd atif
In this way passwd file is also created by still it does not ask for passwd and goes directly into the index.html.
Thanks in advance.
Atif