Varnish error page when all backends are gone?

Mattias Geniar mattias at nucleus.be
Tue Mar 26 09:10:05 CET 2013


>But it does not work as expected. Any ideas why?

You want to catch the situation when your backends are all unavailable?
Then the obj.status probably won't be > 500 (error codes returned by the
backend).

End your if/else block with a final else statement to catch all other
situations (where the status code is unknown), use the std.fileread()
there and that'll most likely catch the situation where your backends are
unavailable.

Regards,
Mattias




More information about the varnish-misc mailing list