I'm having BIG problems password protecting a directory. I
have ween working on it for nearly two months now and still to no
avail.
Basically, I have set up a .htaccess file and .htpasswd file.
Everything seems OK until I try to visit the directory. On inputting my user
name and password in my browser window I am prompted to do it again, and again,
until I am presented with an access denied message. The server my account is on
is a Cobalt RAQ and here is the contents of my .htaccess and .htpasswd files
(for security reasons I've masked out the password with question marks and
changed the path to the directory in this example):
.htaccess:
order allow,deny
allow from all require valid-user AuthType Basic AuthName "Restricted stuff" AuthUserFile /home/sites/mysite/web/cgi-bin/directory/directory/.htpasswd .htpasswd:
myusername:mypassword
I can't figure out what's wrong - I've double checked all
paths and restarted the whole process many times. What am I doing
wrong?
Also: I created the .htpasswd file using htpasswd located at
/usr/bin/htpasswd
|