Skip to content

Instantly share code, notes, and snippets.

@brewn
Last active October 6, 2016 18:14
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 brewn/f86251e4967921a9998dc88f5ec9905e to your computer and use it in GitHub Desktop.
Save brewn/f86251e4967921a9998dc88f5ec9905e to your computer and use it in GitHub Desktop.
sudo varnishd -f /etc/varnish/custom.vcl -s malloc,500M -T 127.0.0.1:6082 -a 0.0.0.0:80 -d
sudo: unable to resolve host varnish
[sudo] password for n:
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
Line 42:
42 return (pass);
Leads me to believe it's having trouble with this section:
}
if (req.url ~ "wp-(admin|login)") {
return (pass);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment