30 articles
Knowledge Base
Nginx
30 articles in the Nginx category · page 2 of 2.
- Safely testing and reloading Nginx — the never-down deploy pattern Why nginx -t before systemctl reload is non-negotiable, what reload actually does to worker processes, and the upgrade pattern that swaps the master binary without dropping connections.
- FastCGI caching in Nginx — when to cache PHP responses and when not to How to use fastcgi_cache to serve PHP-FPM responses from disk, the cache keys that matter, and the bypass rules that prevent caching authenticated traffic.
- Upstream health checks in Nginx — passive, active, and what the open-source build can do How Nginx decides a backend is unhealthy in the open-source build (passive checks), the active-check options (NGINX Plus, nginx_upstream_check_module), and the operational pattern we use.
- Compression in Nginx — gzip versus Brotli and what to actually compress How to enable gzip and Brotli compression in Nginx, choose which content types are worth compressing, and avoid the BREACH-style pitfalls on TLS-served compressible content.
- GeoIP blocking in Nginx — country-based allow and deny with MaxMind How to set up Nginx GeoIP2 with the MaxMind GeoLite2 database, allow or block by country, and avoid the false-positive surprises that come with IP geolocation.
- Security headers on Nginx — HSTS, CSP, X-Frame-Options and the rest The Nginx add_header lines we use on every TLS site — HSTS, Content-Security-Policy, X-Frame-Options, Referrer-Policy, Permissions-Policy — and how to test what the browser actually sees.