Page 1 of 1

.htaccess

Posted: Thu Apr 05, 2007 7:27 am
by kpraman
why this is not working?
.htaccess

Code: Select all

AuthName "Admin area"
AuthType Basic
AuthUserFile /http:phpserver:82/ht/.htpasswd
Require valid-user


.htpasswd

Code: Select all

username:password

Posted: Thu Apr 05, 2007 8:00 pm
by califdon
First, your path to the user file doesn't look valid, it should be a local file path on the server, not a URL. Then, the contents of the user file must contain the encrypted password, not the plain language password, although maybe you only showed that as an example.