htaccess problems
-
htaccess problems
'ello
I'm trying to set up a password for a web directory using .htaccess and .htpasswd. The web server does support this.
Ive tried following the tutorial here:
http://www.freewebmasterhelp.com/tutorials/htaccess/3
and I thought I'd done everything correctly
The password box pops up when I try to access the directory - which is a good sign.
But the password I enter doesnt work.
I created a password using an online tool as suggested.
the file called .htaccess contains this:
AuthUserFile /www/private/.htpasswd
AuthGroupFile /dev/null
AuthName NAME OF DIRECTORY
AuthType Basic
require user USERNAME
and the .htpasswd file is uploaded to /www/private/
and contains the username
assword (oops! unfortunate key combination - lol)
can anyone help?
thanks
Volty
Last edited by Volty; 06-11-2004 at 09:06 AM.
-
I've spent about Half an hour trying to figure this out and this is what I've got:
www.dowen.uni.cc/password
The username and password are volty. I generated this using the passwd file using the encryption tools found on various sites.
The .htaccess file stored in the dowen.uni.cc/password folder contains:
AuthType Basic
AuthName "D-A-L"
AuthUserFile "/home/dowenun/public_html/password/passwd"
require valid-user
I haven't named the file .htpasswd, I named it passwd instead. Note that this displays the FULL path on the server. I think your problem is, you need to know the directory that your userfiles on the server are stored in. These directories won't be visible to you, only visible to the host. So you need to find out from your host what the full file path to the folder where your .htpasswd file is stored (store it seperate from the protected folder, even though I haven't).
-
thanks for the post
I thought I had the correct file path but I will double check with the provider to be sure. I understand I can use an absolute "http://..." type path to make certain.
btw I got error 404 when I clicked your link, but I guess youve removed the page?
cheers
Volty