[users@httpd] How to define string list for comparison?

2014-11-02 Thread Marco Pizzoli
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

Re: [users@httpd] How to define string list for comparison?

2014-11-02 Thread Eric Covener
On Sun, Nov 2, 2014 at 9:57 AM, Marco Pizzoli marco.pizz...@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

Re: [users@httpd] How to define string list for comparison?

2014-11-02 Thread Eric Covener
Also your tested example would help for the manual On Sun, Nov 2, 2014 at 10:04 AM, Eric Covener cove...@gmail.com wrote: On Sun, Nov 2, 2014 at 9:57 AM, Marco Pizzoli marco.pizz...@gmail.com wrote: Hi list, I'm using Apche 2.4.9 and I am trying to define a configuration by leveraging

Re: [users@httpd] How to define string list for comparison?

2014-11-02 Thread Marco Pizzoli
Hi Eric, thanks for your answer. Honestly I had alreaded tried that way, which I think it is the supposed right way to achieve that but I can't make it working. If I rewrite the same If-condition by leveraging regexp matching, then it works. I mean; If %{HTTP:X-ClientIP} =~

Re: [users@httpd] How to define string list for comparison?

2014-11-02 Thread Eric Covener
On Sun, Nov 2, 2014 at 10:22 AM, Marco Pizzoli marco.pizz...@gmail.com wrote: Honestly I had alreaded tried that way, which I think it is the supposed right way to achieve that but I can't make it working. ​This works: If %{HTTP:X-Foo} -in {'foo', 'bar'} ​ -- Eric Covener

Re: [users@httpd] How to define string list for comparison?

2014-11-02 Thread Marco Pizzoli
On Sun, Nov 2, 2014 at 9:55 PM, Eric Covener cove...@gmail.com wrote: On Sun, Nov 2, 2014 at 10:22 AM, Marco Pizzoli marco.pizz...@gmail.com wrote: Honestly I had alreaded tried that way, which I think it is the supposed right way to achieve that but I can't make it working. ​This works:

[users@httpd] hackers

2014-11-02 Thread Edgar Pettijohn
I rarely look at my error logs unless something is broken. Its amazing the number of people trying to access /phpmyadmin along with other nefarious actions on my server. - To unsubscribe, e-mail:

Re: [users@httpd] hackers

2014-11-02 Thread Wilmer Arambula
install fail2ban block fails login, Wilmer.