Minimalistic VCL does not compile

Wido den Hollander wido at widodh.nl
Wed Oct 14 13:14:02 CEST 2015



On 14-10-15 13:01, dE wrote:
> Hi!
> 
> I got this VCL --
> 
> backend default {
>         .host = "46.228.47.114";
>         .port = "https";
> }
> 
> sub vcl_recv {
>         req.backend = "default";

For Varnish 4.0 you should use req.backend_hint and it works a bit
different.

Check the documentation for more information.

>         req.http.host = "www.yahoo.com";
> }
> 
> But running varnishd complaints --
> 
> Message from VCC-compiler:
> Expected an action, 'if', '{' or '}'
> ('input' Line 9 Pos 9)
>         req.backend = "default";
> --------###########-------------
> 
> Running VCC-compiler failed, exit 1
> 
> VCL compilation failed
> 
> Thanks for any help!
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list