<div dir="ltr">Option A and that's what I figured as well. <div><br></div><div>Eric Feldusen</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 10:08 AM, Richard Kearsley <span dir="ltr"><<a href="mailto:richard@kearsley.me" target="_blank">richard@kearsley.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 17/06/14 15:13, Eric Feldhusen
wrote:<br>
</div>
<blockquote type="cite">
<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>
</blockquote></div>
do you mean <br>
a) send each request to both?<br>
b) send each request to one or the other (like load balancing)<br>
<br>
a) is not possible, simply because of the basics of proxying and
http (there would be 2 http responses mixed into 1 connection)<br>
b) can be done with 1 / location but adding another address to the
upstream block:<br>
<br>
<pre><code>upstream backend {
server <ip address>
</code><code><code> server <ip address></code>
}</code></pre>
<pre><code>server {
location / {
proxy_pass <a href="http://original_upstream" target="_blank">http://backend</a>;
}
}</code></pre>
<br>
</div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>