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] How to define string list for comparison?
Date Sun, 02 Nov 2014 15:05:03 GMT
Also your tested example would help for the manual

On Sun, Nov 2, 2014 at 10:04 AM, Eric Covener <covener@gmail.com> wrote:

>
>
> On Sun, Nov 2, 2014 at 9:57 AM, Marco Pizzoli <marco.pizzoli@gmail.com>
> wrote:
>
>> Hi list,
>> I'm using Apche 2.4.9 and I am trying to define a configuration by
>> leveraging the <if> constructor.
>>
>> In short I would like to trigger some configuration if the client IP
>> matches one of a list I put up.
>> I think the "in" operator is what I need, but I'm just failing in
>> understanding how could I implement a string list.
>>
>> <If "%{REMOTE_ADDR} in my_string_list">
>>
>> How can I define the string list? It's just a matter of understanding the
>> syntax.
>> On this page it is referred just a "string list" but I cannot find how to
>> explicit that string list.
>> http://httpd.apache.org/docs/2.4/expr.html#other
>>
>> I just need something like "1.1.1.1 2.2.2.2 3.3.3.3" and so on...
>> Any help?
>>
>> Thanks in advance
>> Marco
>>
>
>
> ​It seems like "string list" in that page should be "wordlist". Can you
> confirm that works?
>
> wordlist    ::= word
>               | wordlist "*,*" word
>
> ​
>
>
>
> --
> Eric Covener
> covener@gmail.com
>



-- 
Eric Covener
covener@gmail.com

Mime
View raw message