Re: X-Accel-Redirect not redirecting to named locaiton

2020-07-08 Thread latha
Thank you Francis Daly. Jumping to named location worked in my env also. I have another issue now: I want to pass the response body of http://test.svc.cluster.local:9080/v2/test/* apis to named location `acreate` which does proxy_pass to another micro-service (which takes the response of /v2/test

X-Accel-Redirect not redirecting to named locaiton

2020-06-30 Thread latha
I have the below config, calling /v2/test/status calls the http://test.svc.cluster.local:9080/status. But the named location `acreate` is not being called. http://test.svc.cluster.local:9080/status does return `X-Accel-Redirect: @acreate` in response header. location @acreate { internal;

How to call a named location in nginx upon 200 status from upstream server

2020-06-26 Thread Latha Appanna
Hello, I want to call REST endpoint after successful (200/201) status from upstream server. For error cases, I know we can use error_page/try_files etc. But for success cases, I did not find any directive to use. I read about `mirror` which can be used to call another server before making the cal