Skip to content

Instantly share code, notes, and snippets.

@lkarsten
Created April 12, 2016 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkarsten/8fbd1a92a97da049ac180b620137b38e to your computer and use it in GitHub Desktop.
Save lkarsten/8fbd1a92a97da049ac180b620137b38e to your computer and use it in GitHub Desktop.
varnish> vcl.inline test <<'__EOF__'
106
Message from VCC-compiler:
Syntax error at
('<vcl.inline>' Line 1 Pos 3)
<<'__EOF__'
--#--------
Running VCC-compiler failed, exited with 2
VCL compilation failed
varnish> vcl.inline test <<__EOF__
106
Message from VCC-compiler:
Syntax error at
('<vcl.inline>' Line 1 Pos 3)
<<__EOF__
--#------
Running VCC-compiler failed, exited with 2
VCL compilation failed
varnish>
varnish> vcl.inline foovcl "vcl 4.0; backend b1 { .host = \"localhost\"; } sub vcl_recv { set req.http.foo = \"bar\"; }" cold
200
VCL compiled.
@lkarsten
Copy link
Author

varnish> vcl.inline test << __EOF__
varnish> foo
varnish> __EOF__
106        
Message from VCC-compiler:
VCL version declaration missing
Update your VCL to Version 4 syntax, and add
    vcl 4.0;
on the first line the VCL files.
('<vcl.inline>' Line 1 Pos 1)
foo
###

Running VCC-compiler failed, exited with 2
VCL compilation failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment