Report this

What is the reason for this report?

Configure Varnish Cache 4.0

Posted on November 14, 2014

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.