Skip to content

Instantly share code, notes, and snippets.

@rintoug
Created March 9, 2017 05:52
Show Gist options
  • Save rintoug/1742dcf820007ceb4d18eea2e1e29ae6 to your computer and use it in GitHub Desktop.
Save rintoug/1742dcf820007ceb4d18eea2e1e29ae6 to your computer and use it in GitHub Desktop.
How To Install and Configure Varnish with Apache on Ubuntu 16.04
[Unit]
Description=Varnish HTTP accelerator
[Service]
Type=forking
LimitNOFILE=131072
LimitMEMLOCK=82000
ExecStartPre=/usr/sbin/varnishd -C -f /etc/varnish/default.vcl
ExecStart=/usr/sbin/varnishd -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
ExecReload=/usr/share/varnish/reload-vcl
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment