<div dir="ltr">Thanks,it works well!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 22, 2014 at 2:40 PM, Thomas Glanzmann <span dir="ltr"><<a href="mailto:thomas@glanzmann.de" target="_blank">thomas@glanzmann.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Hello,<br>
<br>
> > How to proxy request to different upstream by url request parameters?<br>
<br>
> <a href="http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky" target="_blank">http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky</a><br>
<br>
</div>this is part of the commercial subscription, but you can probably obtain<br>
the same using a MAP like that:<br>
<br>
map $arg_key $backend {<br>
        key1 backend1;<br>
        key2 backend2;<br>
        default fail;<br>
}<br>
<br>
proxy_pass http://$arg_key;<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
        Thomas<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>