Not able to access webpage on apache
We are trying to access a specified directory with user name and password using /etc/httpd/conf/httpd.conf. file.
I have created .htpasswd and .htaccess file in the same directory path .
The problem is when i am trying to access the directory , it displays username and password window. Even i give the correct username and password , it has not entered into the directory.It again displays the username and password window.
The .htaccess file has following lines,
AuthName "restricted stuff"
AuthType Basic
AllowOverride AuthConfig
AuthUserFile /var/www/html/java/.htpasswd
require valid-user
satisfy all
and also change the permissions of 644 to .htpasswd, .htaccess files.
Please clarify the doubts as soon as possible.
Thanks in advance,
Viji.
|