<div dir="ltr">I don't think it would be very hard to do with the vcl. If the beresp != 200 you would set a fail header and then retry it. Then just check for that header to direct to a "fail whale" cluster that serves a simple error page.<div>

<br></div><div>I'm sure someone can chime in with a better solution.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 12:52 PM,  <span dir="ltr"><<a href="mailto:maillists0@gmail.com" target="_blank">maillists0@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In some load balancers (haproxy, for example) you can create a backend that only gets hit if all the other backends are down. A common enough setup is to have a local apache serve a polite "oops" page on an alternate port on the loopback. Is there some clever way to do this with Varnish? I've read to docs and googled but can't find anything like this. If this is possible, a doc to the right link would be awesome.  <br>


</div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>

<div dir="ltr">Stephen Wood<div><a href="http://www.heystephenwood.com" target="_blank">www.heystephenwood.com</a></div></div>
</div>