Skip to main content

NGINX Virtual Host: Host Multiple Domains on One Server


by Danila Vershinin, January 27, 2026

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

NGINX Upstream Keepalive: Connection Pooling Guide [2026]


by Danila Vershinin,

Learn how to configure NGINX upstream keepalive for connection pooling to your backend servers. This comprehensive guide covers the keepalive directive, tuning parameters, preventing TIME_WAIT socket exhaustion, and optimizing microservices and API gateway performance.

Read More...

NGINX Proxy Cache & Microcaching: Complete Guide


by Danila Vershinin,

Master NGINX proxy cache and microcaching to achieve up to 400x performance improvement. This comprehensive guide covers proxy_cache_path, proxy_cache_valid, thundering herd prevention with proxy_cache_lock, stale-while-revalidate patterns, and microcaching for dynamic content. Includes production-ready configurations tested on Rocky Linux and AlmaLinux.

Read More...

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 Gzip Compression: The Complete Configuration Guide


by Danila Vershinin,

Learn how to configure NGINX gzip compression for optimal web performance. This comprehensive guide covers gzip_types, gzip_comp_level, gzip_min_length, and all other gzip directives with insights from NGINX source code analysis and production-tested configurations.

Read More...