InfraRunBook
    Back to all articles

    Nginx Runbooks

    Nginx runbooks: reverse proxy, 502 and 404 errors, keepalive, caching, WebSocket proxying, SSL handshake and security headers.

    29 articles — page 1 of 3

    Nginx Keepalive Connection Issues
    Nginx

    Nginx Keepalive Connection Issues

    Diagnose and fix Nginx keepalive connection problems including misconfigured keepalive_timeout, missing upstream keepalive pools, HTTP/1.0 backend issues, and connection churn causing 502 errors and TIME_WAIT accumulation.

    Apr 20, 2026
    Nginx Static Files Returning 404
    Nginx

    Nginx Static Files Returning 404

    Nginx returning 404 for static files is almost always a configuration or permission issue. This guide walks through every common cause — wrong root path, alias confusion, file permissions, try_files bugs, and Linux case sensitivity — with real CLI commands and fixes.

    Apr 17, 2026
    Nginx Worker Process Crashing
    Nginx

    Nginx Worker Process Crashing

    Nginx worker processes can crash for a range of reasons from kernel-level segfaults to Lua panics and OOM kills. This guide walks through every major root cause with real commands, log signatures, and fixes.

    Apr 15, 2026
    Nginx Security Headers Configuration
    Nginx

    Nginx Security Headers Configuration

    A practical guide to configuring HTTP security headers in Nginx, covering HSTS, CSP, X-Frame-Options, Permissions-Policy, and cross-origin isolation headers with real-world configuration examples and verification steps.

    Apr 15, 2026
    Nginx 502 Bad Gateway Fix
    Nginx

    Nginx 502 Bad Gateway Fix

    A practical guide to diagnosing and fixing Nginx 502 Bad Gateway errors, covering upstream failures, PHP-FPM issues, timeouts, buffer problems, and Unix socket permissions.

    Apr 13, 2026
    Nginx CORS Error Troubleshooting
    Nginx

    Nginx CORS Error Troubleshooting

    A practical guide to diagnosing and fixing Nginx CORS errors, covering missing headers, unhandled preflight OPTIONS requests, wildcard credential conflicts, header exposure issues, and Nginx...

    Apr 12, 2026
    Nginx WebSocket Proxying Configuration
    Nginx

    Nginx WebSocket Proxying Configuration

    A practical guide to configuring Nginx as a WebSocket reverse proxy, covering upstream load balancing, SSL termination, required headers, timeout tuning, and common pitfalls.

    Apr 11, 2026
    Nginx Caching Proxy Setup and Tuning
    Nginx

    Nginx Caching Proxy Setup and Tuning

    A practical guide to setting up Nginx as a caching proxy, covering cache zone configuration, bypass rules, buffer tuning, and production verification steps for engineers who need real performance...

    Apr 7, 2026
    Nginx SSL Handshake Failure
    Nginx

    Nginx SSL Handshake Failure

    SSL handshake failures in Nginx can silently kill HTTPS traffic before a single HTTP byte is exchanged. This guide walks through every common root cause — certificate mismatch, expired certs,...

    Apr 5, 2026
    Nginx 504 Gateway Timeout Troubleshooting
    Nginx

    Nginx 504 Gateway Timeout Troubleshooting

    A complete guide to diagnosing and fixing Nginx 504 Gateway Timeout errors, covering upstream slowness, misconfigured timeouts, backend bottlenecks, slow database queries, and network latency with...

    Apr 4, 2026