httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Understanding the concepts of <Require*>
Date Sun, 03 Nov 2013 18:22:36 GMT
On Sun, Nov 3, 2013 at 12:56 PM, Freek de Kruijf <f.de.kruijf@gmail.com> wrote:
> I am trying to translate the following old syntax into the new concept with
> <Require{All|Any|None}>  but After several tries could not figure out how.
>
> The following old syntax is:
>   Require valid-user
>   Order Deny,Allow
>   Deny from All
>   Allow from 127.0.0.1
>   Allow from .example.com
>   Satisfy any
>
> I tried among others:
> <RequireAll>
>   <RequireAny>
>     Require valid-user
>     Require local
>     Require host .example.com
>   </RequireAny>
>   <RequireNone>
>     Require all granted
>   </RequireNone>
> </RequireAll>

Your old config accepts any 1 of an authenticated user, a user from
127.0.0.1, or a user from example.com -- so it is much simpler.

<RequireAny>
  require ip 127.0.0.1
  require host .exampl.com
  require valid-user
<RequireAny>

(actually RequireAny is the default, but it doesn't hurt to make it explicit)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message