Varnish pointing to a Amazon ELB (elastic load balance) does not work. Error: Backend host “XXXXXXXXXXX-123456789.us-east-1.elb.amazonaws.com”: resolves to multiple IPv4 addresses. Only one address is allowed. I wrote this script to have a way to auto update the vcl once […]
How varnish can identify mobile users
How varnish can identify mobile users In this example it basically finds out via regex on the user-agent tag if the user is mobile if so it redirect to a mobile site. sub identify_device { unset req.http.hash-input; set req.http.X-Device = […]
Varnish security.vcl
How to setup Security.vcl on Varnish 3.0 Download it wget https://github.com/KristianLyng/varnish/tree/my2.1/varnish-tools/security.vcl # cd vcl/ # make # cp -a vcl/ /etc/varnish/security.vcl/ (alternatively you could symlink it, of course). Now all it has to be done is edit your normal VCL […]
How to install varnish
How to install varnish This is a step-by-step on howto setup and run varnish web cache. This was done for Linux RedHat 6 64bits, same works for CentOS 5.5 64bits with varnish 3.0 This install is made of Varnish and […]
Varnish Backend Response Monitor
I think it is important to know how much time it is taking for the varnish to go to the backend (webserver) and return. The script will show the response time of more then on site, to make it work […]
Monitor Varnish with Nagios
Varnish is an amazing reverse proxy product and it does its job very well, but how can we know that? Or even better how can we know it detected problems in the backed? Currently I monitor those server using hit/ratio […]
Howto Setup Varnish
Updated Version of this howto Varnish is a awesome Reverse Proxy, for caching websites and improves its performance in a polish varnish way. To setup follow the instructions (tested on CentOS yum update yum install ncurses-devel make clean mkdir /usr/local/src/varnish-2.0.5 […]