A sane default configuration for Varnish 5.x
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
default.vcl PURGE: change message to be more helpful Jul 30, 2018

README.md

Varnish Configuration Templates (boilerplate)

Installation

You can use the configuration templates found in this repository to quickly get started with a complete Varnish configuration that offers support for most functionality. Start of by looking into "default.vcl" and taking the bits you need, copy it to your own default.vcl.

What is it?

A set of configuration samples used for Varnish 5.0 with various features:

  • Server-side URL rewriting
  • Clean error pages for debugging
  • Virtual Host implementations
  • Various header normalizations
  • Cookie manipulations
  • 301/302 redirects from within Varnish

Common troubleshooting

Common list of errors and their fixes:

Basic troubleshooting:

There is already a newer version out: Varnish 6 VCL config template.