• Stars
    star
    322
  • Rank 130,398 (Top 3 %)
  • Language VCL
  • Created over 13 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Configuration templates used for Varnish 3.0 implementations

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

More Repositories

1

php-exploit-scripts

A collection of PHP exploit scripts, found when investigating hacked servers. These are stored for educational purposes and to test fuzzers and vulnerability scanners. Feel free to contribute.
PHP
831
star
2

varnish-4.0-configuration-templates

Configuration templates used for Varnish 4.0 implementations.
VCL
571
star
3

php-percentages

A clean interface to calculate percentages in PHP: changes between values, percentage increases, partial values, ...
PHP
197
star
4

varnish-5.0-configuration-templates

A sane default configuration for Varnish 5.x
VCL
188
star
5

zabbix-orphaned-data-cleanup

Cleanup script for orphaned data in a Zabbix Database
Shell
143
star
6

varnish-6.0-configuration-templates

A sane default configuration for Varnish 6.x
VCL
131
star
7

phpunit-query-count-assertions

A custom assertion for PHPUnit that allows you to count the number of SQL queries used in a test.
PHP
94
star
8

MoZBX

Mobile Zabbix frontend for iPhone, Android, Windows Mobile, ...
PHP
69
star
9

McAfee-Shill-Bot

This bot monitors @officialmcafee's tweets, parses their text & images (using OCR), extracts the coin-ticker and buys them on BitTrex.
PHP
65
star
10

puppet-pre-commit-hook

A Puppet pre-commit hook to validate syntax
Shell
60
star
11

http-flooder

An experiment using goroutines and channels to create a simple HTTP flooder. Mixes GET, POST, PUT, PATCH, ... to one baseline URL.
Go
54
star
12

certdiff

Every tried to run 'diff' on 2 certificate files? Doesn't quite work. This tool helps resolve that: a clear report between 2 certificates, reporting all differences.
Shell
43
star
13

the-infinite-file-download

A PHP script that sends binary data to a browser. Non-stop.
HTML
27
star
14

demo-php-blocking-sessions

A small demo on how PHP handles session locking and concurrency.
HTML
26
star
15

slowloris

Slowloris - the low bandwidth, yet greedy and poisonous HTTP client
Perl
24
star
16

Varnish-URL-Purger

Some sample PHP code to purge a Varnish URL from cache
PHP
21
star
17

laravel-gitlab-ci-config

An example config for using Gitlab's pipelines (ci/cd) to test Laravel applications in phpunit.
16
star
18

Encoder

Encoding, Decoding and Obfuscating strings.
PHP
10
star
19

mojah.be

A set of resources provided for the Bitcoin community.
PHP
10
star
20

generator.cronweekly.com-v2

Second edition for the cron.weekly generator: gets all bookmarks from the Pocket API and structures the markdown.
HTML
10
star
21

rsssg

Real Simple Static Site Generator - A static site generator using native Linux tools
Shell
8
star
22

mac-bootstrap

Script to bootstrap the setup of a new Mac with default tools & configs
Shell
8
star
23

nginx-configuration-templates

Sample nginx templates used as a reference
7
star
24

bash-script-skeleton-template

A simple template that can serve as the base for future shell scripts. Contains proper handling of options, has a help function, logging capabilities, ...
Shell
7
star
25

generator.cronweekly.com

Generate the HTML and plain-text version of the cron.weekly newsletter, based on simple HTML (WordPress blogposts).
PHP
7
star
26

Mailheader-Parser

A test to parse mailheaders in a more readable format, and do some analytics on them.
PHP
6
star
27

dotfiles

personal config .files
Shell
4
star
28

http2-vs-http1-demo-sites

You heard about this thing called HTTP/2. It's supposed to be a better protocol. Faster. Safer. More unicorns. But how much better? This repo contains a couple of HTTP/1.1 vs HTTP/2 comparisons you can test.
CSS
3
star
29

apc.php

This is a blind copy of the apc.php file that is bundled with PECL's APC installation.
PHP
3
star
30

docker-containers

A dump-place for my Dockerfiles
Dockerfile
3
star
31

puppet-certificate

Manage SSL certificates through a Puppet defined type. This does not manage the Puppet CA Certificates, but SSL certificates for Apache, Nginx, ...
Puppet
2
star
32

puppet-caddy

A puppet module to manage the Caddy webserver.
2
star
33

vettigevrijdag.be

Waarom? Daarom.
CSS
2
star
34

puppet-sysdig

Install the sysdig Linux debugging tool via Puppet
Puppet
2
star
35

puppet-vagrant_helper_scripts

Set of helper scripts to ease development of Puppet modules/manifests with Vagrant.
Puppet
2
star
36

Shortlink-Revealer

A firefox extension that, upon mouseover of a URL, will show you the actual target of that URL - not the bit.ly or other shortlink.
JavaScript
2
star