Excellent hint - works perfectly!<div><br></div><div>Andreas<br><br><div class="gmail_quote">2010/6/16 Marc Fournier <span dir="ltr"><<a href="mailto:marc.fournier@camptocamp.com">marc.fournier@camptocamp.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<div class="im"><br>
> Is it possible to configure a fallback server (serving a static<br>
> maintenance page) for a director with some backend<br>
> servers in case all backend servers are down?<br>
<br>
</div>I had the same need some time ago, and solved it by simply switching<br>
backends when the main ones are in an "unhealthy" state:<br>
<br>
director cluster round-robin {<br>
  { .backend = {<br>
    ...<br>
      .probe = { # required to let req.backend.healthy work<br>
        ...<br>
      }<br>
    }<br>
  }<br>
  ...<br>
}<br>
<br>
backend sorryserver {<br>
  ...<br>
}<br>
<br>
sub vcl_recv {<br>
<br>
  set req.backend = cluster;<br>
<br>
  if (!req.backend.healthy) {<br>
    set req.backend = sorryserver;<br>
    pass;<br>
  }<br>
}<br>
<br>
I hope this helps !<br>
Marc<br>
<br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br></div>