Send all requests to two separate upstream servers?

Eric Feldhusen efeldhusen.lists at gmail.com
Tue Jun 17 15:12:43 UTC 2014


Option A and that's what I figured as well.

Eric Feldusen


On Tue, Jun 17, 2014 at 10:08 AM, Richard Kearsley <richard at kearsley.me>
wrote:

>  On 17/06/14 15:13, Eric Feldhusen wrote:
>
> 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.
>
> do you mean
> a) send each request to both?
> b) send each request to one or the other (like load balancing)
>
> a) is not possible, simply because of the basics of proxying and http
> (there would be 2 http responses mixed into 1 connection)
> b) can be done with 1 / location but adding another address to the
> upstream block:
>
> upstream backend {
>     server   <ip address>    server   <ip address>
> }
>
> server {
>     location / {
>         proxy_pass  http://backend <http://original_upstream>;
>     }
> }
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140617/de73c245/attachment-0001.html>


More information about the nginx mailing list