NGINX If Is Evil: Complete Guide to Safe Conditional Logic
by Danila Vershinin, January 27, 2026
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 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 Basic Auth with htpasswd: Complete Configuration Guide
by Danila Vershinin, January 26, 2026
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 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 CORS Configuration: The Complete Guide
by Danila Vershinin, January 24, 2026
Learn how to properly configure CORS in NGINX with this comprehensive guide. Discover why most tutorials are wrong, understand the critical `always` parameter, handle preflight requests, and implement production-ready configurations for credentials and multiple origins.
Read More...NGINX Location Priority: Complete Regex Matching Guide
by Danila Vershinin,
Master NGINX location priority and regex matching. Learn how =, ^~, ~, and ~* modifiers work, understand the matching algorithm from NGINX source code, avoid common security pitfalls, and use tools like Gixy to validate your configuration.
Read More...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...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...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...