make varnish still respond if backend dead

Max Clark max.clark at
Wed Apr 23 19:34:14 CEST 2008

Did you find a solution to this?

On Fri, Apr 4, 2008 at 12:51 AM, Sascha Ottolski <ottolski at> wrote:
> Hi,
>  sorry if this is FAQ: what can I do to make varnish respond to request
>  if it's backend is dead. should return cache hits, of course, and
>  a "proxy error" or something for a miss.
>  and how can I prevent varnish to cache "404" for objects it couldn't
>  fetch due to a dead backend? at least I think that is what happened, as
>  varnish reported 404 for URLs that definetely exist; the dead backend
>  seems to be the only logical explanation why varnish could think it's
>  not.
>  oh, and is there a way to put the local hostname in a header? I have two
>  proxies, load balanced by LVS, so using server.ip reports the same IP
>  on both nodes.
>  Thanks, Sascha
>  _______________________________________________
>  varnish-misc mailing list
>  varnish-misc at

More information about the varnish-misc mailing list