<div class="gmail_quote">On Wed, Jul 18, 2012 at 5:31 PM, Abraham Cruz Sustaita <span dir="ltr"><<a href="mailto:abraham.sustaita@buscacorp.com" target="_blank">abraham.sustaita@buscacorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I have all the sections in separated files:<br><br>At backend.vcl<br><br><span style="font-family:courier new,monospace">backend app02 {</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  .host = "<a href="http://app02.domain.com" target="_blank">app02.domain.com</a>";</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">  .port = "80";</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  .connect_timeout = 1.5s;</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">  .first_byte_timeout = 45s;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  .between_bytes_timeout = 30s;</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">  .probe = {          </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    .url = "/health-check.html";</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">    .interval = 1s;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    .timeout = 30s;</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">    .window = 10;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    .threshold = 8;</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">  }</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">}</span><br><br>At vcl_recv.vcl:<br><br><span style="font-family:courier new,monospace">  #request to beta</span><br style="font-family:courier new,monospace">



<span style="font-family:courier new,monospace">  if (req.http.Host == "<a href="http://www.domain.com" target="_blank">www.domain.com</a>") {</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    set req.backend = app02;</span><div class="HOEnZb">

<div class="h5"><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  }</span><br><br></div></div></blockquote><div><br></div><div>







<p class="p1">On app02...</p>
<p class="p1">apachectl -S</p>
<p class="p2"><br></p>
<p class="p1">From varnish host...</p>
<p class="p1">wget -s <a href="http://app02.domain.com/health-check.html">http://app02.domain.com/health-check.html</a></p>
<p class="p1">wget --header="Host: <a href="http://www.domain.com">www.domain.com</a>" <a href="http://app02.domain.com">app02.domain.com</a></p></div></div>