Click to See Complete Forum and Search --> : .htaccess .htpasswd issue


robin1
12-23-2003, 11:06 PM
hello everybody..

haveing issues with .htaccess and .htpasswd...
it brings up the password screen but the password i put in isn't getting validated.
err msg
401 authorization required.
This server could not verify that ou are authorized to access the document request. either your supplied the wrong credentials or your browser doesn't understand how to supply the credentials required..

.htaccess
Authuserfile /folder1/folder2/.htpasswd
authname " locked area"
authtype basic
require valid-user

.htpasswd
locaton of file
/folder1/folder2/
name:password

and in httpd.conf
i configured Allowoverride from "none" to "All"
side note... .htpasswd is u=rw g=rx o=rx
any ideas

terets
12-31-2003, 03:53 PM
Here is a couple of great links for what you're trying to accomplish. I think your answer is in there, they are VERY good tutorials.

I think you may not have done the htpasswd script to create the encrypted files.

http://httpd.apache.org/docs-2.0/en/howto/auth.html

http://httpd.apache.org/docs-2.0/en/howto/htaccess.html

Hope this helps!