Thanks,it works well!
On Sat, Mar 22, 2014 at 2:40 PM, Thomas Glanzmann 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
upstream upstream1{
}
upstream upstream2{
}
upstream upstream3{
}
upstream upstream4{
}
request url is http://.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=