<div>Hi Ben,</div><div><br></div>On Mon, Oct 22, 2012 at 4:17 PM, list, mailing <span dir="ltr"><<a href="mailto:list@sprymed.com" target="_blank">list@sprymed.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I'm trying to setup varnish on a multi domains to go to one apache server then let apache handle everything after caching.</blockquote><div><br></div><div>You don't need to do anything. Varnish does this out of the box. Just define the backend and if there is only one Varnish will automatically send all traffic to it.</div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>When I search online People breakout the backend's by domain name.</div><div><br></div>

<div>I do see to add:</div><div><div>sub vcl_hash {</div><div><div>    set req.hash += req.url;</div><div>    if (req.http.Accept-Encoding) {</div>
<div>        set req.hash += req.http.Accept-Encoding;</div><div>    }</div><div>    #set req.hash += req.http.cookie;</div><div>    return (hash);</div></div><div>}</div></div><div><br></div><div>for hashing per site.</div>

</blockquote><div><br></div><div>What you're doing here is totally different and it is not related to what you are trying to achieve.</div><div><br></div><div><br></div></div><div><br></div>-- <br><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">

<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>

<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>Varnish Software AS<br>Phone: +958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>

<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div><br>