Re: Nginx multiple upstream map conditions

2016-08-31 Thread c0nw0nk
c0nw0nk Wrote: --- > Francis Daly Wrote: > --- > > On Wed, Aug 31, 2016 at 01:30:30PM -0400, c0nw0nk wrote: > > > > Hi there, > > > > > Thanks works a treat is it possible or allowed to do the

Re: Nginx multiple upstream map conditions

2016-08-31 Thread c0nw0nk
Francis Daly Wrote: --- > On Wed, Aug 31, 2016 at 01:30:30PM -0400, c0nw0nk wrote: > > Hi there, > > > Thanks works a treat is it possible or allowed to do the following > in a > > nginx upstream map ? and if so how i can't figure it out. > > I

Re: Nginx multiple upstream map conditions

2016-08-31 Thread Francis Daly
On Wed, Aug 31, 2016 at 01:30:30PM -0400, c0nw0nk wrote: Hi there, > Thanks works a treat is it possible or allowed to do the following in a > nginx upstream map ? and if so how i can't figure it out. I think it is logically impossible. > I cache with the following key. > fastcgi_cache_key > "$

Re: Nginx multiple upstream map conditions

2016-08-31 Thread c0nw0nk
Valentin V. Bartenev Wrote: --- > On Tuesday 30 August 2016 14:25:28 c0nw0nk wrote: > > So this is a fun one. > > > > As allot of people probably already know you can't use "IF" on > upstream > > values since if conditions are executed before any

Re: Nginx multiple upstream map conditions

2016-08-31 Thread c0nw0nk
Thanks works a treat is it possible or allowed to do the following in a nginx upstream map ? and if so how i can't figure it out. I cache with the following key. fastcgi_cache_key "$session_id_value$scheme$host$request_uri$request_method"; if the upstream_cookie_logged_in value is not equal to

Re: Nginx multiple upstream map conditions

2016-08-31 Thread Valentin V. Bartenev
On Tuesday 30 August 2016 14:25:28 c0nw0nk wrote: > So this is a fun one. > > As allot of people probably already know you can't use "IF" on upstream > values since if conditions are executed before any "$upstream_" conditions. > > But with a map directive it might just be possible to combine 2 u

Nginx multiple upstream map conditions

2016-08-30 Thread c0nw0nk
So this is a fun one. As allot of people probably already know you can't use "IF" on upstream values since if conditions are executed before any "$upstream_" conditions. But with a map directive it might just be possible to combine 2 upstream maps together and have a output based on the condition