Varnish error page when all backends are gone?
Mattias Geniar
mattias at nucleus.be
Sun Mar 24 22:18:52 CET 2013
>Is there a way to return a custom "error" page when all backends are
>down? Or should I configure a local (on the same server as varnish)
>instance od web server with a static page and use it in case of
>problems? Hot to achieve that in VCL?
Hi Rafal,
Check out the use cases for the vcl_error() routine, that can output a
synthetic{} response that contains flat HTML for a "maintenance" or status
page. When all backends fail, the vcl_error() routine will be used.
Regards,
Mattias
More information about the varnish-misc
mailing list