nginx proxy pass redirect through load balancer

Posted by Brian on Server Fault See other posts from Server Fault or by Brian
Published on 2010-09-27T11:51:09Z Indexed on 2012/04/15 11:33 UTC
Read the original article Hit count: 283

Filed under:
|
|
|
|

I have several backend webservers that are load-balanced using LVS. These machines have only internal non-routable IPs on them. The load-balancer is the only machine with an external IP. This setup works great. I would like to add another webserver for image serving, but it will not be part of the load-balanced pool. Is it possible to proxy pass from the load-balanced web servers to the image server and have the response redirected to the client?

Client-->external LB-->internal web server-->internal image server

I've gotten proxy pass working when I remove the LB from the equation, but no luck when trying to use it.

© Server Fault or respective owner

Related posts about nginx

Related posts about load-balancing