RE: how to create session persistence or hash_ip within server context for an if statement

2022-01-24 Thread Reinis Rozitis
> I got it working! I am not sure of the performance hit, maybe someone know how to make this more effective? Without going deeper on what are your actual requirements and what is the expected result, the suggestion I could give is instead of the multiple if statements to look at the map directiv

503 redirect

2022-01-24 Thread tony tabone
Dear all, I am currently trying to implement a 503 reply with specific pages. I basically have a nginx config which is using GEOIP. All the html files load fine with a 200 reply, however I am trying to change the reply to 503 and still show the same page. Is it possible for this to be done ?

Re: how to create session persistence or hash_ip within server context for an if statement

2022-01-24 Thread Jelle de Jong
On 1/24/22 11:15, Reinis Rozitis wrote: I want to be able to do an redirect, but only one time, the hit it should not redirect. If a client visits an web-store it will get redirected to the region specific store, but if then then manually select an other store there it should not redirect bac

Re: Using single persistent socket to send subrequests

2022-01-24 Thread Sergey A. Osokin
Hi Devashi, On Mon, Jan 24, 2022 at 05:52:56AM +, Devashi Tandon wrote: > > We have the following configuration: > > location / { > proxy_http_version 1.1; > proxy_pass http://ext-authz-upstream-server; > } > > upstream ext-authz-upstream-server { > server 172.20.10.6:9006; >

RE: how to create session persistence or hash_ip within server context for an if statement

2022-01-24 Thread Reinis Rozitis
> I want to be able to do an redirect, but only one time, the hit it should not redirect. > > If a client visits an web-store it will get redirected to the region specific store, but if then then manually select an other store there it should not redirect back again. I don't know if a nginx sessio

Re: how to create session persistence or hash_ip within server context for an if statement

2022-01-24 Thread Jelle de Jong
Thank you for taking a look! On 1/24/22 00:45, Francis Daly wrote: On Fri, Jan 21, 2022 at 12:45:16PM +0100, Jelle de Jong wrote: Hi there, How can I use an nginx session or hash_ip in the server context to only do the following if statement code once and not a second time an client visits th