Configuration templates used for Varnish 4.0 implementations.
Switch branches/tags
Nothing to show
Clone or download
mattiasgeniar Merge pull request #50 from kristofvandam/master
check if method is PURGE in sub vcl_purge
Latest commit 0048c89 Mar 13, 2018
Failed to load latest commit information. Spacing Oct 28, 2016
default.vcl check if method is PURGE in sub vcl_purge Mar 13, 2018

Varnish Configuration Templates (boilerplate)


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 4.0. This includes templates for:

  • Wordpress
  • Drupal (works decently for Drupal 7, depends on your modules obviously)
  • Joomla (WIP)
  • Fork CMS
  • OpenPhoto

And various configuration for:

  • 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:

Click here for a Varnish 3 VCL config template

Click here for a Varnish 5 VCL config template