upstream using header value

Weibin Yao nbubingo at gmail.com
Mon May 31 09:45:55 MSD 2010


PatRoy at 2010-5-29 4:41 wrote:
> Hi,
>
> Can someone tell me if it's possible to proxy the requests to
> different servers by using an http header value. So for example we
> have 2 web servers and if the request has the http header "group_id"
> between 0 and 100 then those go to server #1, and between 100 and 200,
> they go to server #2?
>
> Can you do this with a module like upstream_hash ??
>   
My module can do similar thing for your need. But my module uses the 
cookie to dispatch the requests.
http://code.google.com/p/nginx-upstream-jvm-route/

> Thank you
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>   


-- 
Weibin Yao




More information about the nginx mailing list