Including an HTML file for vcl_error

Per Buer perbu at varnish-software.com
Fri Dec 7 08:51:46 CET 2012


Hi James,

On Fri, Dec 7, 2012 at 12:58 AM, James Pearson <james at ifixit.com> 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.



-- 
 <http://www.varnish-software.com/> *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: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121207/2e30816f/attachment.html>


More information about the varnish-misc mailing list