[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] [Raq3] .htaccess question



Hello,
I want to password protect a directory containing an index.html file.  I have created a .htaccess file in that directory, and I have
created a .htpasswd file in the same directory.  when I try to access the directory from the web browser, I get the login window but
it will not accept the username and password that I put in the .htpasswd file but it will accept any username and password for any
user on my server.  My question is how do I get the authentication routine to use the information in the .htpasswd file that is in
the directory I want to protect?

Here is a listing of my .htaccess file which is located in
/home/sites/home/users/admin/web/test

AuthName Test
AuthType Basic
AuthUserFile /home/sites/home/users/admin/web/test/.htpasswd
require valid-user

Here is a listing of my .htpasswd file which is located in
/home/sites/home/users/admin/web/test

testuser:mMXWJaZtIgxIk
me:me

As you can see, I have tried a username/password pair that is encrypted and one that is not just to see if it would work.

Note: the password for testuser is testuser

Thanks in advance,
JC Jones  :)