I run Varnish on a number of servers, and I don’t always have a full metrics setup (e.g. Graphite/Statsd/Collectd) setup. Also, sometimes I just want a real time dashboard to watch traffic (or my clients do). I’ve been using Varnish Agent 2 + the ITLinuxCL dashboard, which is lacking to say the least. The dashboard […]
Varnish
Varnish VCL Syntax Highlighting For Sublime
I’m an avid fan of the Sublime Text editor, and I also work with Varnish on a daily basis. Like Nginx and many non-standard languages, Sublime Text has no built-in support for Varnish VCL configuration files, and the only existing plugin was very poor. Not only does the existing plugin have awful syntax highlighting that […]
Nginx, Varnish and optional CloudFlare: Real IPs
If you use a proxy such as Varnish or CloudFlare, your web server isn’t going to see visitor’s real IP address, it’ll see the IP of your proxy (for example, Varnish would be 127.0.0.1 if running on the same box as your web server). You can easily find instructions to fix this for Varnish or […]
Nginx + Varnish Wrong Port With Redirects
I recently switched my blog and many of my sites over to a new server stack, with Varnish running in front of Nginx + PHP-FPM. I noticed an issue however. When requesting a path like: http://brandonwamboldt.ca/assets, I was being redirected to http://brandonwamboldt.ca:8000/assets/. This alone took me a few minutes to discover, as the original problem […]