Varnish

Créé le 28/03/2014

Dernière mise à jour le 16/08/2014

Étiquettes

Installation :

Sur une Debian 7 Wheezy en utilisateur root.

Varnish 3.x :

sudo apt-get install varnish

Varnish 4.x :

  1. apt-get install apt-transport-https
  2. curl https://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -
  3. echo "deb https://repo.varnish-cache.org/debian/ wheezy varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
  4. apt-get update
  5. apt-get install varnish

Configuration :

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-varnish-with-apache-on-ubuntu-12-04--3

Configuration pour Drupal 7 :

https://www.drupal.org/project/varnish

https://fourkitchens.atlassian.net/wiki/display/TECH/Configure+Varnish+3+for+Drupal+7

https://www.digitalocean.com/community/tutorials/how-to-configure-varnish-for-drupal-with-apache-on-debian-and-ubuntu

Vider les caches de Varnish :

Version 2.1

varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret url.purge .

Version 3

varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret "ban.url /"

Ajouter un commentaire