<div dir="ltr">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. <div><br></div><div>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.</div>
<div><br></div><div><pre><code>upstream original_upstream {
server <ip address>
}
upstream new_upstream {
server <ip address>
}
server {
location / {
proxy_pass <a href="http://original_upstream">http://original_upstream</a>;
}
location / {
proxy_pass <a href="http://new_upstream">http://new_upstream</a>;
}</code></pre><pre><code><br></code></pre><pre><code>Any suggestions?</code></pre><pre><code><br></code></pre><pre><code>Eric Feldhusen</code></pre></div></div>