RE: [users@httpd] SentEnvIf and multiple X-Fowarded-For headers

2019-10-25 Thread Michael Nielsen
Thanks Eric; I will try that. -Original Message- From: Eric Covener Sent: Friday, October 25, 2019 2:33 PM To: users@httpd.apache.org Subject: Re: [users@httpd] SentEnvIf and multiple X-Fowarded-For headers > the problem is that Apache seems to run the SetEnvIf only agai

Re: [users@httpd] SentEnvIf and multiple X-Fowarded-For headers

2019-10-25 Thread Eric Covener
> the problem is that Apache seems to run the SetEnvIf only against the > first occurrence of the Header. As a hack you can try to make the first argument look like a regex by putting ^ in the front. That will trigger code that tries to find a match amongst a set of headers.

RE: [users@httpd] SentEnvIf and multiple X-Fowarded-For headers

2019-10-23 Thread Michael Nielsen
I asked a similar question some weeks ago (in respect of -ipmatch and X-Forwarded-For) , but received no response. Original question reproduced here: --- I am certain I’m missing something important about the directive and the -ipmatch operator

Re: [users@httpd] SentEnvIf and multiple X-Fowarded-For headers

2019-10-23 Thread Ruben Safir
On Wed, Oct 23, 2019 at 01:25:57PM +0200, Maxime VEROONE wrote: > Hi, > > This question was previously sent to StackOverflow (ID 57206362), but > I believe it belongs here more than there. > > We are using this kind of configuration to grant access to one of our > sites (here with RFC1918 CIDR