Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 2.66 KB

File metadata and controls

51 lines (33 loc) · 2.66 KB

Varnish Configuration Templates (boilerplate)

🚀 Need help implementing Varnish?

I'm available for consultancy if you're struggling with implementing Varnish and speeding up your site. Don't be afraid to reach out!

Warning: Varnish 3 is end-of-life

You can still use Varnish 3 of course, but there will be no more security or bug fixes to the Varnish 3.x release. It's probably wise to focus your Varnish adventures on the new varnish 4 VCL config template.

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 "production.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 3.0. This includes templates for:

  • Wordpress
  • Drupal (works decently for Drupal 7, depends on your addons 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 4 VCL config template

Click here for a Varnish 5 VCL config template