Send all requests to two separate upstream servers?
Eric Feldhusen
efeldhusen.lists at gmail.com
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: <http://mailman.nginx.org/pipermail/nginx/attachments/20140617/ca22ee45/attachment.html>
More information about the nginx
mailing list