Skip to main content

NGINX Load Balancing: Complete Guide to Algorithms & Setup


by Danila Vershinin, January 23, 2026

Learn how NGINX load balancing works under the hood. This complete guide covers all load balancing algorithms including round-robin, least connections, IP hash, consistent hashing, and the Power of Two Choices, with production-ready configuration examples.

Read More...

NGINX Reverse Proxy: The Complete Guide


by Danila Vershinin,

Master NGINX reverse proxy configuration from basics to advanced. Learn proxy_pass, upstream load balancing, headers, buffering, timeouts, WebSockets, and troubleshooting 502/504 errors with production-ready examples.

Read More...

504 Gateway Timeout NGINX: How to Fix It


by Danila Vershinin, January 22, 2026

Stop copy-pasting timeout fixes. Learn which NGINX directive actually causes 504 errors and how to fix it properly—whether you’re proxying to Varnish, Node.js, PHP-FPM, or any HTTP backend.

Read More...

NGINX FastCGI Keepalive: Persistent PHP-FPM Connections


by Danila Vershinin, January 21, 2026

Learn how to configure persistent FastCGI connections between NGINX and PHP-FPM using fastcgi_keep_conn and upstream keepalive directives. Includes production-ready configurations, PHP-FPM tuning tips, and troubleshooting guidance.

Read More...

NGINX Browser Caching for Static Files: Cache-Control, Expires & Cache Busting


by Danila Vershinin, January 20, 2026

Master NGINX browser caching for static files with this comprehensive guide. Learn Cache-Control and Expires headers, cache-busting strategies, versioned URLs, and the immutable directive. Includes production-ready configurations tested on RockyLinux 9 and AlmaLinux 10, performance optimizations, CDN integration, and troubleshooting tips.

Read More...

How to Serve WebP Images Automatically with NGINX: Complete 2026 Guide


by Danila Vershinin, January 19, 2026

Learn how to automatically serve WebP images with NGINX to supporting browsers while falling back to JPEG/PNG for others. Covers content negotiation, the Vary header, on-the-fly conversion with nginx-module-webp, and the PageSpeed module.

Read More...

How to enable Varnish Cache on Magento 2 without downtime


by Danila Vershinin, January 16, 2026

Learn how to enable Varnish Cache on Magento 2 without downtime. Step-by-step guide with NGINX sandwich setup, VCL configuration, and zero-downtime traffic switch.

Read More...

Supercharging WordPress with NGINX Cache Purge – Say Goodbye to Mounts and Permissions Hassles!


by Danila Vershinin, November 2, 2024

Learn how to set up NGINX cache purge for WordPress with the ngx_cache_purge module. This guide covers installation, configuration, cache key best practices, and troubleshooting common purge issues.

Read More...

CentOS/RHEL 8: how to build the kernel RPM with native CPU optimizations


by Danila Vershinin, June 20, 2020

How to build kernel RPM packages with native CPU optimizations, for fun and profit, *and* performance

Read More...

PHP HTTP Caching: Complete Guide to Cache-Control Headers


by Danila Vershinin, September 16, 2017

Understanding PHP HTTP caching is essential for building fast, scalable web applications. PHP’s session handling automatically sends cache-related headers that can interfere with your caching strategy, while frameworks like WordPress add their own layer of complexity. This guide covers everything you need to know about PHP HTTP caching in PHP 8.x and how to properly […]

Read More...