Skip to content

Instantly share code, notes, and snippets.

@scottalan
Created April 3, 2018 16:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Varnish
# Varnish v4.0
# Clear varnish cache
varnishadm "ban req.url ~ .*"
# Example debug for vcl file
std.log("X-AH-Redirect is: " + X-AH-Redirect);
# Tail logs for any debug lines in a VCL
varnishlog -i VCL_Log
# Push logs into a file
varnishlog -i VCL_Log > logs.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment