Skip to content

Instantly share code, notes, and snippets.

@scottalan
Created April 3, 2018 16:26
Show Gist options
  • Save scottalan/69bd497bcf59755dbc5be543692c5b78 to your computer and use it in GitHub Desktop.
Save scottalan/69bd497bcf59755dbc5be543692c5b78 to your computer and use it in GitHub Desktop.
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