Papy
August 26th, 2004, 10:22 AM
Hi,
I want to password protect my directory on server using .htaccess and .htpasswd files.
the directory i want to protect is 'aftron' the code for the .htaccess file goes like this
AuthUserFile /home/comsdev/passwords/aftron/.htpasswd
AuthType Basic
AuthName 'Secret Place'
require valid-user
the code for .htpasswd file goes like this
michel:123
now when i browse to th index page of protected directory (aftron) i get the dialog box asking username and password but after three tries i get the 'Authentication Required' error ...
why is it so..???
ive also checked the location of both .htaccess and .htpasswd files on server they are present there path for .htpasswd file given in .htaccess is also correct ...wht could be the reason ....
Anybody help me solve this issue plzzzz.
Thanx
I want to password protect my directory on server using .htaccess and .htpasswd files.
the directory i want to protect is 'aftron' the code for the .htaccess file goes like this
AuthUserFile /home/comsdev/passwords/aftron/.htpasswd
AuthType Basic
AuthName 'Secret Place'
require valid-user
the code for .htpasswd file goes like this
michel:123
now when i browse to th index page of protected directory (aftron) i get the dialog box asking username and password but after three tries i get the 'Authentication Required' error ...
why is it so..???
ive also checked the location of both .htaccess and .htpasswd files on server they are present there path for .htpasswd file given in .htaccess is also correct ...wht could be the reason ....
Anybody help me solve this issue plzzzz.
Thanx