Fail Whale

Stephen Wood smwood4 at
Fri Nov 15 22:13:03 CET 2013

One final thought. Obviously you wouldn't want to redirect everything
that's not a 200. Just throwing that in as an example. A failed backend
would actually return 503 I believe.

On Fri, Nov 15, 2013 at 1:11 PM, Stephen Wood <smwood4 at> wrote:

> 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.
> I'm sure someone can chime in with a better solution.
> On Fri, Nov 15, 2013 at 12:52 PM, <maillists0 at> wrote:
>> 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.
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at
> --
> Stephen Wood

Stephen Wood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list