Skip to content

Instantly share code, notes, and snippets.

@alvinnguyen
Last active August 2, 2016 13:40
Show Gist options
  • Save alvinnguyen/413b43b45e8f73effdcab2389191220c to your computer and use it in GitHub Desktop.
Save alvinnguyen/413b43b45e8f73effdcab2389191220c to your computer and use it in GitHub Desktop.
Reload Varnish server using command line (not service varnish reload)
varnishadm
vcl.load reload01 /usr/local/etc/varnish/default.vcl
vcl.use reload01
varnishadm "ban.url ." # Matches all URLs
varnishadm "ban req.http.host == opensourcehacker.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment