[TOC]
This is the a very basic buildout template to run varnish.
Lucky people read the documentation, anyway if you have a local copy of this buildout, try to run this command:
make
To start the buildout:
python2.7 bootstrap.py && ./bin/buildout
To launch varnish:
./bin/varnish
You may want to install this to get this buildout working:
# python stuff
apt-get install python-dev python-virtualenv
# other stuff
apt-get install libpcre++-dev libreadline-dev
The varnish template for the configuration
is in templates/varnish.vcl.in
.
This template is inspired by
http://developer.plone.org/hosting/varnish.html#id12.
The buildout will compile this file and create a file in etc/varnish.vcl
.
A: In the file buildout.cfg
, section varnish
,
modify the backend-port
option,
which defaults to:
[varnish]
...
bind = 127.0.0.1:8099
A: In the file buildout.cfg
, section varnish
,
modify the bind
option,
which defaults to:
[varnish]
...
bind = 127.0.0.1:8099
[varnish]
...
telnet = 127.0.0.1:8098
A: In the file buildout.cfg
, section varnish
,
modify the cache-size
option,
which defaults to:
[varnish]
...
cache-size = 512M