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:06:30
Message-Id: 4B966E33.6010805@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 I check the log file here is the line:
24 77.54.124.11 - specificuser [09/Mar/2010:16:46:35 +0100] "GET /admin
25 HTTP/1.1" 401 472
26
27 it does not auth.
28 My .htaccess:
29
30 AuthUserFile /so/secret/path/.htpasswd
31 AuthGroupFile /dev/null
32 AuthName "Shoot the password"
33 AuthType Basic
34 <Limit GET POST>
35 require specificuser
36 </limit>
37
38 <FilesMatch "^([_a-z0-9A-Z])+$">
39 RewriteEngine On
40 RewriteRule (.*) /admin/index.n
41 </FilesMatch>
42
43 so I shall avoir this <Limit> keyword...? Actually I don't get why just
44 specify that for GET and POST if someone arrive with a PUT does it mean
45 it will let it pass??
46
47 Laurent

Replies

Subject Author
Re: [gentoo-user] htpasswd works only for valid-user Mick <michaelkintzios@×××××.com>