Skip to main content

NGINX Zstd Compression: Complete Configuration Guide


by Danila Vershinin, January 27, 2026

Learn how to configure Zstandard (zstd) compression in NGINX for faster websites. Complete guide with installation, configuration examples, performance benchmarks comparing zstd vs gzip vs Brotli, and best practices for RHEL, CentOS, Rocky Linux, and AlmaLinux.

Read More...

NGINX map Directive: Guide to Conditional Variables


by Danila Vershinin,

Learn how to use the NGINX map directive to create conditional variables for routing, rate limiting, security headers, and A/B testing. This comprehensive guide covers syntax, pattern matching, real-world examples, and performance optimization.

Read More...

NGINX If Is Evil: Complete Guide to Safe Conditional Logic


by Danila Vershinin,

The NGINX if directive has earned a notorious reputation. Learn why “if is evil” in NGINX, which directives are safe inside if blocks, and how to write robust conditional logic using map directives and other alternatives.

Read More...

NGINX sendfile, tcp_nopush, and tcp_nodelay Explained


by Danila Vershinin,

Learn how NGINX sendfile, tcp_nopush, and tcp_nodelay work together to optimize static file serving and reduce network latency. This guide covers the kernel-level mechanics, when to enable each directive, and production-ready configurations.

Read More...

NGINX Virtual Host: Host Multiple Domains on One Server


by Danila Vershinin,

Learn how to configure NGINX virtual hosts (server blocks) to host multiple domains on one server. This guide covers basic setup, wildcard subdomains, server_name matching, default_server configuration, and SELinux considerations for Rocky Linux and RHEL systems.

Read More...

NGINX Allow Deny: Complete IP Whitelist & Blacklist Guide


by Danila Vershinin,

Master NGINX allow and deny directives to control access by IP address. This complete guide covers IP whitelisting, blacklisting, CIDR notation, the geo module for large IP lists, and common pitfalls with tested configurations.

Read More...

NGINX proxy_pass Trailing Slash: Complete Guide


by Danila Vershinin, January 26, 2026

Learn how NGINX proxy_pass trailing slash affects URL rewriting. This complete guide explains the URI transformation rules with verified examples, decision flowcharts, and real-world configurations to fix common proxy_pass not working issues.

Read More...

NGINX Alias vs Root: End the Confusion Once and For All


by Danila Vershinin,

Master the difference between NGINX alias and root directives. This comprehensive guide explains path construction, trailing slash rules, try_files interaction, and regex patterns with tested configurations that will end the confusion permanently.

Read More...

NGINX Timeout Directives: Complete Configuration Guide


by Danila Vershinin,

Master all NGINX timeout directives including proxy_read_timeout, client_body_timeout, keepalive_timeout, and send_timeout. Learn when to use each, production-ready values, and how to diagnose timeout issues.

Read More...

NGINX Basic Auth with htpasswd: Complete Configuration Guide


by Danila Vershinin,

Learn how to configure NGINX basic authentication using htpasswd. This complete guide covers password file creation, hash algorithms, WordPress protection, staging site security, SSL integration, and troubleshooting.

Read More...