Web Hosting Talk







View Full Version : htaccess password not working


Lmax
07-04-2002, 07:37 AM
Hi,
I have a standard apache 2.0.36 and want to enable password protection for a domain with a htaccess file

When i put this in the htaccess file :

AuthName "Some name"
AuthType Basic
AuthUserFile /usr/sites/domain.com/cgi-bin/admin/.htpasswd
AuthGroupFile /dev/null

<Limit GET POST>
require valid-user
</Limit>

It seems to work. I get a popup box asking for the password, but when i enter the username and pass i created with htpasswd it doesn't work, it just returns to the popup box again. After three times it gives the error validation failed.

Any suggestions on what might cause this??

Thanks

flue
07-04-2002, 07:49 AM
Seems like there's something wrong with your .htpasswd file since your passwd are not accepted :crap:

could u plz post it ?

Lmax
07-04-2002, 09:31 AM
I created it with the htpasswd command
it looks like this
i made a test user with the pass test

test:6dTACwq8i5m4s

Also other users also don't work.

Might it be a module apache is missing. Maybe the standard config doesn't include some sort of auth module??

Thanks

flue
07-04-2002, 10:01 AM
Im not really an HtAccess expert (got ppl to do that kind of stuff) :D

but as far as i remember u have to include "AllowOverride All" in your apache config for that domain

Otherwise try to post the error msg you get from your apache error - log :confused:

/Regards