You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom <du...@usa.net> on 2002/07/21 18:25:39 UTC
.htaccess help
I am trying to require login to a directory admin/
in on my webpage.
I created a .htaccess file as follows
AuthUserFile .htpasswd
AuthGroupFile /dev/null
AuthName Admin
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I then created the .htpasswd file in the same directory.
Next I tried to connect and could not get access to any webpage. So I stopped and Started httpd and
could then connect, but no login screen for the admin/ directory.
So what did I do wrong?
Thanks,
Tom
Re: .htaccess help
Posted by Vincent Kruger <al...@spils.com>.
I've always had problem with using the .htaccess AuthUserFile like you have.
try using the full path to the .htpasswd file e.g. /usr/www/home/.htpasswd
----- Original Message -----
From: Tom
To: users@httpd.apache.org
Sent: Sunday, July 21, 2002 6:25 PM
Subject: .htaccess help
I am trying to require login to a directory admin/
in on my webpage.
I created a .htaccess file as follows
AuthUserFile .htpasswd
AuthGroupFile /dev/null
AuthName Admin
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
I then created the .htpasswd file in the same directory.
Next I tried to connect and could not get access to any webpage. So I stopped and Started httpd and
could then connect, but no login screen for the admin/ directory.
So what did I do wrong?
Thanks,
Tom