schickb at gmail.com
Wed Feb 10 17:26:03 CET 2010
On Feb 10, 2010, at 3:04 AM, Reinis Rozitis wrote:
>> I have a varnish server working well, but I'd like to have a standby server that does nothing but server up "Sorry we are
>> preforming maintenance". My thought was to write VCL code to check the health of the director, and if that was bad use a different
>> server (something like the example below). But that doesn't work. Any suggestions?
> Why not use the vcl_error ?
> Just customize the default html which is included in the sample config and you can have a nice error page without even the need of a
> extra server.
Thanks for the suggestion, but our error page isn't trivial and I don't like the idea of maintaining the site within a varnish configuration file. It actually won't be an extra server, it will just be on a port on the same machine as varnish. But served by a proper http server.
More information about the varnish-misc