Skip to main content

NGINX Rewrite Rules: The Complete Guide to URL Rewriting


by Danila Vershinin, January 25, 2026

Master NGINX rewrite rules and URL rewriting with this comprehensive guide. Learn the difference between return and rewrite directives, capturing groups, rewrite flags, and real-world SEO migration scenarios with tested configurations.

Read More...

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...

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...

How to Serve Localized NGINX Error Pages Based on Browser Language


by Danila Vershinin, January 20, 2026

Learn how to configure NGINX to serve localized 404 and 500 error pages based on the Accept-Language header. Complete guide with two methods: using the map directive and the accept-language module. Includes tested configurations for Rocky Linux 9 and AlmaLinux 10.

Read More...

Choosing your RHEL 8 clone after the death of CentOS


by Danila Vershinin, July 24, 2021

As CentOS is no longer an RHEL clone, companies seek another free clone of RHEL. What will it be? AlmaLinux, Rocky Linux, or Oracle Linux? We review these choices and give a recommendation.

Read More...

NGINX HSTS: Complete Strict-Transport-Security Guide


by Danila Vershinin, August 5, 2018

Learn how to configure NGINX HSTS (Strict-Transport-Security) correctly. This comprehensive guide covers the RFC 6797 specification, preload requirements, redirect patterns for www and non-www domains, common misconfigurations, and how to avoid SSL stripping attacks with verified configurations.

Read More...

Clear Disk Space on CentOS, RHEL, Rocky Linux & Fedora


by Danila Vershinin, September 22, 2016

Quick commands to clear disk space on CentOS, RHEL 7/8/9, Rocky Linux, AlmaLinux, and Fedora. Covers log trimming, systemd journal cleanup, YUM/DNF cache, old kernels, Docker, and more.

Read More...