Send all requests to two separate upstream servers?

Eric Feldhusen efeldhusen.lists at
Tue Jun 17 14:13:37 UTC 2014

I have a need to adjust a nginx install doing reverse proxy to a single
server now to adjust it to send all requests it receives to two different
upstream servers.

I was thinking I could do it with the configuration below, but I wasn't
sure if that would work and I'd have to use re-write rules instead.

upstream  original_upstream  {
    server   <ip address>
upstream  new_upstream  {
    server   <ip address>

server {
    location / {
        proxy_pass  http://original_upstream;
    location / {
        proxy_pass http://new_upstream;

Any suggestions?

Eric Feldhusen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list