how to proxy request to different upstream by url request parameters.
jqzone
jqzone at gmail.com
Mon Mar 24 01:46:55 UTC 2014
Thanks,it works well!
On Sat, Mar 22, 2014 at 2:40 PM, Thomas Glanzmann <thomas at glanzmann.de>wrote:
> Hello,
>
> > > How to proxy request to different upstream by url request parameters?
>
> > http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky
>
> this is part of the commercial subscription, but you can probably obtain
> the same using a MAP like that:
>
> map $arg_key $backend {
> key1 backend1;
> key2 backend2;
> default fail;
> }
>
> proxy_pass http://$arg_key;
>
> Cheers,
> Thomas
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140324/3689a5b5/attachment.html>
More information about the nginx
mailing list