Reverse caching proxies: Varnish or Nginx?
summary
Compares Varnish v4 and Nginx by showing real configs and tools: apt installs, ports, vcl back-end response overrides, nginx proxy_cache and fastcgi_cache keys, varnishadm bans and varnishlog/varnishstat for monitoring. Notes Varnish lacks TLS so production stacks use nginx for SSL/SPDY in front, ESI vs SSI tradeoffs, and cache invalidation methods (ban vs file purge). Claims operational success: two varnish servers handled 19M uniques a day, and Varnish v4 adds much better varnishlog filtering.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 2:08Reverse proxy concepts
- 7:45Varnish and Nginx overviews
- 9:53Installation and configuration
- 11:56Advanced VCL and Nginx config
- 15:03PHP, HHVM, and Node.js proxying
- 21:26Default caching rules
- 23:55Monitoring and logging
- 31:01Cache flow states
- 33:22Custom cache keys
- 36:21Cache purging and banning
- 40:24Load balancing
- 48:44Edge Side Includes (ESI)
- 53:34SSL and conclusion








