Custom error message

Dag-Erling Smørgrav des at
Mon Aug 13 16:03:39 CEST 2007

Knut-Olav Hoven <hovenko at> writes:
> Dag-Erling Smørgrav <des at> writes:
> > Knut-Olav Hoven <hovenko at> writes:
> > > How can I customize the error messages that Varnish return?
> > Not easily; edit bin/varnishd/cache_synthetic.c and recompile.
> So I can't intercept the response in vcl, detect if the response
> code is 503 and then trigger a new 503 error with a different
> message or HTML code?

It might be possible to change req.url and issue a restart?  Poul-Henning?

Of course, if Apache is down and your error page isn't cached, you're SOL.

Dag-Erling Smørgrav
Senior Software Developer
Linpro AS -

More information about the varnish-misc mailing list