Varnish : Non-Cache/Data Fetch + Load-Balance
        Posted  
        
            by 
                xperator
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by xperator
        
        
        
        Published on 2012-11-09T21:18:04Z
        Indexed on 
            2012/11/09
            23:04 UTC
        
        
        Read the original article
        Hit count: 302
        
load-balancing
|varnish
Someone commented at my previous question and said it's possible to do this with Varnish:
Instead of :
Client Request > Varnish LB > Backend > Varnish LB > Client
I want to have (Direct reply from backend to client, instead of going through the LB) :
Client Request > Varnish LB > Backend > Client
This is not working :
sub vcl_pass {
  if (req.http.host ~ "^(www.)?example.com$") {
     set req.backend = baz;
     return (pass);
}
}
© Server Fault or respective owner