Mis-config in my VCL

Benimaur Gao benimaur at gmail.com
Sun Nov 25 16:34:13 CET 2012


Thank you for pointing out that for me!

# varnishd -V
varnishd (varnish-2.1.3 SVN )
Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS

I will upgrade my varnish soon :)



On Sun, Nov 25, 2012 at 11:25 PM, kokoniimasu <kokoniimasu at gmail.com> wrote:

> Hi, Benimaur.
>
> What is your Varnish version?
> beresp.do_esi is 3.0 later.
>
> ref
> https://www.varnish-cache.org/docs/3.0/installation/upgrade.html
>
> Regards,
> --
> Syohei Tanaka(@xcir)
> http://xcir.net/
> (:3[__])
>
> 2012/11/26 Benimaur Gao <benimaur at gmail.com>:
> > Hi,
> > I am trying to get myself acquaintance with ESI.
> > I add the following snippet to my default.vcl, and cannot get varnishd
> > started anymore..
> >
> >  83 sub vcl_fetch {
> >  84     if (req.url == "/esi.html") {
> >  85        set beresp.do_esi = true;
> >  86        set beresp.ttl = 24h;
> >  87     } elseif (req.url == "/cgi-bin/date.cgi") {
> >  88        set beresp.ttl = 1m;
> >  89     }
> >  90     if (!beresp.cacheable) {
> >  91         return (pass);
> >  92     }
> >  93     if (beresp.http.Set-Cookie) {
> >  94         return (pass);
> >  95     }
> >  96     return (deliver);
> >  97 }
> >
> > and the error message is:
> >
> > # varnishd -f /etc/varnish/default.vcl -s malloc,10M -T 127.0.0.1:2000
> > storage_malloc: max size 10 MB.
> > Message from VCC-compiler:
> > Unknown variable 'beresp.do_esi'
> > At: (input Line 85 Pos 12)
> >        set beresp.do_esi = true;
> > -----------#############--------
> > Running VCC-compiler failed, exit 1
> > VCL compilation failed
> >
> > hope someone can help.
> >
> >
> > _______________________________________________
> > varnish-misc mailing list
> > varnish-misc at varnish-cache.org
> > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121125/135f7ef4/attachment.html>


More information about the varnish-misc mailing list