Re: apache2 directory protection
- From: lego_12239@xxxxxxxxxx
- Date: Fri, 4 Dec 2009 20:07:28 +0300
On Fri, Dec 04, 2009 at 11:14:38AM -0500, vr wrote:
I am having trouble getting apache2 recognizing directory protection.
I've created a directory /var/www/mydir and created .htaccess & .htpasswd
files in there but am never prompted for login.
.htaccess
AuthUserFile /var/www/mydir/.htpasswd
AuthType Basic
AuthName "test"
require valid-user
.htpasswd
mytestuser:<hashedScramble>
I understand that .htpasswd should reside someplace else and even moved it
to rule this out but is the above not enough on a default installation of
apache2 under lenny to protect a directory?
Do you have next line in the httpd.conf:
<Directory /var/www/mydir>
AllowOverride AuthConfig
</Directory>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- apache2 directory protection
- From: vr
- apache2 directory protection
- Prev by Date: Re: apache2 directory protection
- Next by Date: Re: Will Debian accept a SATA to IDE hdd adapter?
- Previous by thread: Re: apache2 directory protection
- Next by thread: Re: apache2 directory protection
- Index(es):
Relevant Pages
|