httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Melanie Pfefer <melanie_pfe...@yahoo.co.uk>
Subject Re: [users@httpd] 'require' keyword
Date Thu, 20 Aug 2009 15:35:30 GMT
Do you think this is caused Location directive used for a location and a sublocation?

I tested on a fresh apache. The <directory> directive works as expected (i.e. only user1,
user2 and user3 can access bbb/) (But still I am prompted for password even if I do not access
bbb/):

<Directory /usr/local/apache2/htdocs/aaa>
....
Require valid-user
....
</Directory>

<Directory /usr/local/apache2/htdocs/aaa/bbb>
....
Require user user1 user2
.....
</Directory>

thanks

--- On Thu, 20/8/09, Eric Covener <covener@gmail.com> wrote:

> From: Eric Covener <covener@gmail.com>
> Subject: Re: [users@httpd] 'require' keyword
> To: users@httpd.apache.org, aw@ice-sa.com
> Date: Thursday, 20 August, 2009, 6:21 PM
> On Thu, Aug 20, 2009 at 10:55 AM,
> André Warnier<aw@ice-sa.com>
> wrote:
> > Melanie Pfefer wrote:
> > ...
> >
> >> Require user user1
> >> Require user user2
> >
> > Melanie,
> > I believe you may be caught by the fact that the two
> lines above actually
> > express /two/ requirements, cumulatively, which cannot
> be both met at the
> > same time.
> >
> > Try this :
> > Require user user1 user2
> 
> This should not result in a functional change. 
> Multiple requires are
> OR'ed, even when on different Require ...  lines or
> from different
> modules.
> 
> > Require user user1
> > Require user user2
> > Satisfy any
> 
> Satisfy only changes how access control and authorization
> interact,
> not how multiple authorization directives interact.
> 
> -- 
> Eric Covener
> covener@gmail.com
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache..org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 

Send instant messages to your online friends http://uk.messenger.yahoo.com 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message