Skip to content

Instantly share code, notes, and snippets.

@svdgraaf
Last active December 20, 2015 05:29
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svdgraaf/6078982 to your computer and use it in GitHub Desktop.
Save svdgraaf/6078982 to your computer and use it in GitHub Desktop.
CENTOS 6 with Varnish 3.03 and VMOD support (geoip example)
# varnish
sudo yum remove varnish*
sudo rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el6/noarch/varnish-release-3.0-1.el6.noarch.rpm
sudo yum install varnish-3.0.3
sudo yum install pcre-devel libedit libedit-devel
# varnish source
wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz
tar -zxvf varnish-3.0.3.tar.gz
./configure
make
# vmod
wget https://github.com/leed25d/geoip-vmod/archive/master.zip
unzip master.zip
sudo yum install unzip automake autoinstall libtool geoip geoip-devel
./autogen.sh
./configure VARNISHSRC=$HOME/tmp/varnish-3.0.3 VMODDIR=/usr/lib64/varnish/vmods/
make
# optional ;)
# sudo make install
# Don't forget to edit your /etc/varnish/default.vcl (it will be replace by the rpm install,
# see /etc/varnish/default.vcl.rpmsave), and your varnish settings in /etc/sysconfig/varnish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment