how to proxy request to different upstream by url request parameters.

jqzone jqzone at gmail.com
Sat Mar 22 03:07:28 UTC 2014


upstream upstream1{

}

upstream upstream2{

}

upstream upstream3{

}

upstream upstream4{

}

request url is http://xxxx.com/id=xxx&key=xxx

if (id is 1~100 key=key1) send to upstream1
if (id is 1~100 key=key2) send to upstream2
if (id is 101~200 key=key1) send to upstream3
if (id is 101~200 key=key2 ) send to upstream4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140322/73a9df1b/attachment-0001.html>


More information about the nginx mailing list