Hello,
Am wondering if there is a way to proxy (i.e proxy_pass inside location
directive) to different set of upstreams based on whether a particular
cookie is present or not in a http request header.
Thanks
-Kunal
Hello,
Am wondering if there is a way to proxy (i.e proxy_pass inside location
directive) to different set of upstreams based on whether a particular
cookie is present or not in a http request header.
Thanks
-Kunal
On Wed, Jun 11, 2014 at 12:46:41AM -0700, Kunal P. wrote:
Hi there,
Am wondering if there is a way to proxy (i.e proxy_pass inside location
directive) to different set of upstreams based on whether a particular
cookie is present or not in a http request header.
You can use a map (Module ngx_http_map_module)
to set a variable based on a cookie
(Module ngx_http_core_module),
and you can use a variable in your proxy_pass directive
(Module ngx_http_proxy_module).
So it looks like it should Just Work.
Francis D. [email protected]
Thanks for your answer. Worked great for me…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs