Closed Thread Icon

Topic awaiting preservation: .htpasswd (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=12623" title="Pages that link to Topic awaiting preservation: .htpasswd (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: .htpasswd <span class="small">(Page 1 of 1)</span>\

 
HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 02-24-2003 17:21

I'm trying to set up a password protected directory with .htpasswd.

My .htaccess file which is located in /temp/ looks like this:
--------------------
AuthUserFile /temp/secure/.htpasswd
AuthGroupFile /dev/null
AuthName "test"
AuthType Basic

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

and the .htpasswd file which is located in /temp/secure/ (as you see above) looks like:
--------------------
a:FMwLzDfsXRwmE
--------------------

where user name is "a" and encrypted password is "b" (just for testing).
I encrypted the password here: http://www.xs4all.nl/~remcovz/htpasswd.html

The problem is that the login box appears, but when I type in the User Name and Password nothing happens and the box reappears. Anyone knows where the problem may lie?

Thanks in advance.

PS, I've read the tutorial at GN but no luck.



[This message has been edited by HZR (edited 02-24-2003).]

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 02-25-2003 13:42

I'm assuming that the htpasswd file is in /temp/secure/?

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 02-25-2003 16:47

The reappearing box means you were not authenticated.
Pugzly is probably on the spot. That AuthUserFile /temp/secure/.htpasswd needs to be an absolute path for the whole server, not just from your documentroot

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 02-25-2003 17:12

Thanks for your answers. So it could be it's not working because I have a subdomain?

twItch^
Maniac (V) Mad Scientist

From: the west wing
Insane since: Aug 2000

posted posted 02-26-2003 03:24

1) telnet to the directory you want to htpasswd protect.
2) type 'pwd'
3) copy the output to your AuthUserFile declaration.

That should fix it, if I'm reading the problem correctly.


« BackwardsOnwards »

Show Forum Drop Down Menu