[users@httpd] If statement evaluating an http header against a pattern is always true even though it should not

2015-11-04 Thread Christian Georg
Hi all, I am running an apache 2.4.7 on CentOS 6.7 I am trying to perform request routing within a reverse proxy based on the x-auth header, but for some reasons the if and elseif statements are alwyas evalutaing to true. Here is the part from the config. This is contained in the virtual

AW: [users@httpd] If statement evaluating an http header against a pattern is always true even though it should not

2015-11-04 Thread Christian Georg
Hi Eric, et all this would explain the issue I am having. I am not that familiar with apache. Do you have any suggestion how I can perform the reverse proxying based on the X-auth header? or any suggestion how to use another kind of variable which will set conditionally? Including the

Re: [users@httpd] If statement evaluating an http header against a pattern is always true even though it should not

2015-11-04 Thread Eric Covener
I think your problem is that Define is executed immediately when it's read, at startup. It's a rare special case like e.g. Include. It cannot be processeed per-request, which is what is for. I vaguelly recall a later discussion/patch blocking that Context for Define. On Wed, Nov 4, 2015 at 7:41

Re: [users@httpd] If statement evaluating an http header against a pattern is always true even though it should not

2015-11-04 Thread Eric Covener
On Wed, Nov 4, 2015 at 8:23 AM, Christian Georg wrote: > Hi Eric, et all > > this would explain the issue I am having. I am not that familiar with apache. > Do you have any suggestion how I can perform the reverse proxying based on > the X-auth header? or any suggestion