Intercepting proxy_pass response

Hi -
I have somewhat of a unique requirement.

If the http response from a proxied(proxy_pass) request is 302, I want
to
clear a cookie and redirect to a specific url. Is is possible to
intercept
the 302 from the app server and force my own redirect?

Thanks,
Joe

Hello!

On Mon, Oct 27, 2014 at 12:43:33PM -0500, Joe Rizzo wrote:

Hi -
I have somewhat of a unique requirement.

If the http response from a proxied(proxy_pass) request is 302, I want to
clear a cookie and redirect to a specific url. Is is possible to intercept
the 302 from the app server and force my own redirect?

Yes, see Module ngx_http_proxy_module.


Maxim D.
http://nginx.org/