vcl_error function not getting executed

Andreas Plesner Jacobsen apj at mutt.dk
Fri Dec 2 10:59:43 CET 2011


On Wed, Nov 30, 2011 at 10:27:40AM +0000, manju m wrote:
> 
> I have a requirement for customizing 404 error page for varnish, and i
> have done the changes.
> But the changes are not getting picked up, i still get the error page
> from the application , not the one which i have configured in varnish,
> even after restarting varnish.

A 404 is a cacheable object like any other. vcl_error is used when varnish
can't fetch the object you're trying to serve, or when the vcl uses the
function.

You can call error yourself in vcl_fetch if the server returns a 404.

-- 
Andreas




More information about the varnish-dev mailing list