Gentoo Archives: gentoo-user

From: Laurent Kappler <laurent@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] htpasswd works only for valid-user
Date: Tue, 09 Mar 2010 16:07:33
Message-Id: 4B966EF0.7090802@logiquefloue.org
In Reply to: Re: [gentoo-user] htpasswd works only for valid-user by Mick
1 Mick a écrit :
2 > On Monday 08 March 2010 19:48:12 Laurent Kappler wrote:
3 >
4 >> Hi
5 >>
6 >> I'm using htpasswd to write the user password form my htaccess.
7 >>
8 >> It works only if I put "require valid-user" not if I put "require
9 >> specificuser"
10 >>
11 >> any idea?
12 >>
13 >
14 > Have you tried:
15 >
16 > AuthType Basic (or Digest)
17 > AuthUserFile /usr/local/apache/passwd/htpasswords
18 > Require user specificuser
19 >
20 > Make sure that the path to the htpasswords file is outside your webroot - you
21 > don't want visitors to be able to access it!
22 >
23 it works with require valid-user, like it finds the htpasswd file.