Skip to main content

NGINX Rate Limiting: The Complete Guide


by Danila Vershinin, January 22, 2026

Learn how to configure NGINX rate limiting using the leaky bucket algorithm. This comprehensive guide covers limit_req_zone, burst, nodelay, delay parameters, whitelisting IPs, and production-ready configurations to protect your server from DDoS attacks, API abuse, and brute force attempts.

Read More...

504 Gateway Timeout NGINX: How to Fix It


by Danila Vershinin,

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 TLS 1.3 Hardening: A+ SSL Configuration Guide


by Danila Vershinin, January 21, 2026

Learn how to configure NGINX for maximum TLS security with TLS 1.3, achieve an A+ SSL Labs rating, and use tools like Gixy for automated security validation. Complete guide with tested configurations for RHEL 9, Rocky Linux, and AlmaLinux.

Read More...

NGINX FastCGI Keepalive: Persistent PHP-FPM Connections


by Danila Vershinin,

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 Localized NGINX Error Pages Based on Browser Language


by Danila Vershinin,

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

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 Create a Python Web Service with uWSGI and NGINX on Rocky Linux


by Danila Vershinin,

Learn how to deploy a production-ready Python web service using uWSGI and NGINX on Rocky Linux 9 or AlmaLinux 10. Complete guide covering virtual environments, systemd services, NGINX configuration, performance tuning, and security best practices.

Read More...

Using the OWASP Core Rule Set with the NGINX Security Module


by Danila Vershinin, January 18, 2026

Learn how to install and configure the OWASP Core Rule Set (CRS) with NGINX ModSecurity on Rocky Linux, AlmaLinux, and RHEL 9. Protect your web applications from SQL injection, XSS, remote code execution, and other OWASP Top 10 attacks with this comprehensive WAF configuration guide.

Read More...

Linux setfacl Command: Complete Guide to ACL Permissions for Read-Only Users and Beyond


by Danila Vershinin,

Learn how to use the Linux setfacl command to add read-only users to directories, configure recursive ACL permissions, and set default ACLs for new files. This comprehensive guide covers everything from basic syntax to advanced use cases for enterprise-grade access control.

Read More...