Varnish

From Biowikifarm Metawiki
Jump to: navigation, search

Test installation of Varnish - with MobileFrontend the FileCache will no longer work!

sudo curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
sudo nano /etc/apt/sources.list
# add: deb http://repo.varnish-cache.org/ubuntu/ lucid varnish-3.0
sudo apt-get update; sudo apt-get install varnish
# check: (first setup: 8080 is varnish, 80 remains nginx, later switch)
sudo nano /etc/default/varnish
sudo nano /etc/varnish/default.vcl
# nginx remained unchanged for the moment!


check on console with

varnishstat


perhaps - not yet used - see http://lautr.com/setup-varnish-with-existing-nginx-site-on-debian