[Varnish] #713: IP Forwarding with Varnish

Varnish varnish-bugs at varnish-cache.org
Thu Jun 3 19:17:38 CEST 2010


#713: IP Forwarding with Varnish
--------------------------+-------------------------------------------------
 Reporter:  brentnesbitt  |        Type:  documentation
   Status:  new           |    Priority:  normal       
Milestone:                |   Component:  documentation
  Version:  trunk         |    Severity:  normal       
 Keywords:                |  
--------------------------+-------------------------------------------------
 Hi,
 I have 3 Apache2 backend servers that are load balanced by ldirectord.
 Each apache server has a real IP address, plus several "virtual" IP
 addresses.  These virtual addresses actually belong to the load-balancer,
 and are IP Forwarded to the apache servers.  Apache listens on the virtual
 IP addresses (as well as on the real IP address, but that's just a default
 page to let the load-balancer know its alive).  There are multiple
 NameVirtualHosts on each IP address.

 I am wanting to insert '''varnish''' into the mix, but run into a problem
 when varnish sends the request to the REAL IP address of the apache
 server, and apache can't listen on *:80, since it specifically listens on
 the defined IPs.

 Also, I can't use the "virtual" IP addresses of the various domains, since
 those addresses ACTUALLY belong to the load balancer, and would create a
 loop (the load balancer currently forwards to varnish, which should in
 turn forward to the apache server)

 I see no documentation on this configuration, yet imagine it must be a
 problem for many people.  How would you recommend I address this
 situation?

-- 
Ticket URL: <http://varnish-cache.org/ticket/713>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list