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
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to