Including an HTML file for vcl_error

Per Buer perbu at
Fri Dec 7 08:51:46 CET 2012

Hi James,

On Fri, Dec 7, 2012 at 12:58 AM, James Pearson <james at> wrote:

> In vcl_error, I can use the synthetic keyword to construct a nice HTML
> error
> page.  For consistency reasons, I'd like this to use the same error page
> we use
> in a few other parts of the stack.  Is there any way to pull in another
> file as
> a value?

import std;

and then use std.fileread

See man vmod_std for details.

 <> *Per Buer*
CEO | Varnish Software AS
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list