Créé le 28/03/2014
Dernière mise à jour le 15/06/2021
Installation :
Sur une Debian 7 Wheezy en utilisateur root.
Varnish 3.x :
sudo apt-get install varnish
Varnish 4.x :
- apt-get install apt-transport-https
- curl https://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add -
- echo "deb https://repo.varnish-cache.org/debian/ wheezy varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
- apt-get update
- apt-get install varnish
Configuration :
Configuration pour Drupal 7 :
https://www.drupal.org/project/varnish
https://fourkitchens.atlassian.net/wiki/display/TECH/Configure+Varnish+3+for+Drupal+7
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 /"
Varnishlog :
varnishlog -q 'ReqMethod ~ "BAN"'
Ajouter un commentaire