.htpasswd woes - path problems?


#1

Hi, I am trying to password protect a folder on my webspace.

But its not accepting my username/password.

Here is my .htaccess file:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/editz/XXXXXXXX.co.uk
AuthGroupFile /dev/null
require valid-user

I have a few domains hosted on the same webspace, could this be causing problems?

I am not sure what the path of the .htpasswd file is.
I have tried moving it about but it doesnt matter what the location is, it doesnt work.

I have SSH’d into the directory where the file is, done a ‘pwd’ and used that path but it doesnt work.

Can anyone help?

Thanks.


#2

Shouldn’t that be…

AuthUserFile /home/editz/XXXXXXXX.co.uk/somedirectory/.htpasswd

Assuming the .htpasswd file is in the same sub-directory as the .htaccess file.

Is there any reason why you don’t just use the panel to create the .htaccess and .htpasswd files? (Goodies -> Htaccess/WebDAV)

Mark


Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)


#3

“You currently have no active domains with us.”

I have my domain with Dreamhost but the webspace is on another persons Dreamhost webspace.


#4

Ah, OK. I just knew there had to be a good reason. :stuck_out_tongue:

Mark


Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)


#5

OK