Giter VIP home page Giter VIP logo

varnish-3.0-configuration-templates's Introduction

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

varnish-3.0-configuration-templates's People

Contributors

hulet avatar hvelarde avatar karelbemelmans avatar mattiasgeniar avatar pad92 avatar pborreli avatar pereorga avatar peterlozano avatar thijsferyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

varnish-3.0-configuration-templates's Issues

Joomla offline site

These templates work really great, thanks for sharing. I did however come acrosss one issue with Joomla sites that are set to offline mode, that require front end login to access. They just produce a 503 at the moment. If I just set the same site to online mode it works normally, also front end login works, it seems it is just offline mode that is broken somehow. Guess it's a cookie problem or similar.

This is a Joomla! 3.2.0 Stable [ Ember ] 6-November-2013 14:00 GMT

One set req.grace not needed

Hi, on line 58 there is: set req.grace = 15s;
However, since we ALWAYS set grace in line 60 or 63, why do you need initialization in line 58? I believe it is not needed (though it doesn't hurt either).

Wordpress Preview Mode

Wordpress preview mode doesn't seem to work unless I tack on "&wp-admin" to the URL of the previewed document. I've tried changing the wordpress.vcl files to

# Drop any cookies Wordpress tries to send back to the client.
if (!(req.url ~ "wp-(login|admin)" || req.url ~ "preview")) {
    unset beresp.http.set-cookie;
}

and

# Drop any cookies sent to Wordpress.
if (!(req.url ~ "wp-(login|admin)" || req.url ~ "preview=true")) {
    unset req.http.cookie;
}

But it hasn't changed anything. Do you have any ideas for getting wordpress preview mode working?

Missing license

Hello,

I love the work you did with the templates but it seems there is no explicit license in this repository so I'm not sure if I can use it. Could you add a license please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.