You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Vincent Kruger <al...@spils.com> on 2002/07/21 15:21:31 UTC
detecting and changing www.abc.com
OK.
I've now got my settings as follows.
VirtualDocumentRoot /usr/www/%2.1%2.2%2.3%2.4/%1
but now i have to detect if the url has www in front it and then change that to goto abc.com.
How do I
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
.htaccess help
Posted by Tom <du...@usa.net>.
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