PDA

View Full Version : Securing the Admin Directory: another ID 10 T user error?


Leeram
5-24-05, 07:24 PM
I've read as many posts and tutorials as I can find about this and have been trying for hours to get the .htaccess and .htpasswd files to work, but no matter what I try I get the same result; when I access the admin directory I get a Windows login box but when I type in the username/password combination the box just pops back up, after three attempts it fails.

I assume that because I get the password box appearing that the .htaccess file is in the correct place and is definitely ascii.

I have tried everything I can think of, is there anyone here who can help me?

The files are currently configured thus:

.htaccess

AuthUserFile /www/u/username/.htpasswd
AuthGroupFile /dev/null
AuthName "If you are not the shop admin then please leave"
AuthType Basic
require user user1

and the .htpasswd is

user1:password

I should probably mention that I am using WIndows XP SP2 and IE 6 to access the site.

Any help greatly appreciated. I know it's something I am doing incorrectly but I cannot work out what.

Cheers

Lee

Leeram
5-24-05, 08:13 PM
I've sorted it. I try for hours then fix it a few minutes after posting! Typical.

I think what fixed it was putting a carriage return at the end of the username:password combination. I don't know for sure if that's what it was but that seems to be the only thing I tried that I hadn't tried before.

Cheers Everyone

Leeram