tokar93
By:
tokar93

Configure Varnish Cache 4.0

November 14, 2014 2.2k views

Hi

I have follow this guide https://www.digitalocean.com/community/tutorials/how-to-configure-varnish-cache-4-0-with-ssl-termination-on-ubuntu-14-04 and i end up whit this error when i restart Varnish:

sudo service varnish restart

  • Stopping HTTP accelerator varnishd [fail]
  • Starting HTTP accelerator varnishd [fail] Message from VCC-compiler: Expected an action, 'if', '{' or '}' ('Builtin' Line 42 Pos 1) vcl 4.0; ###-----

Running VCC-compiler failed, exited with 2

VCL compilation failed

What can be the problem?

1 comment
  • Could you post you Varnish configuration to a pastebin? It seems like you have a syntax error at or around line 42 of your vcl file.

1 Answer

I have get it to work. But what type of config can i add to that file?

Have another answer? Share your knowledge.