About

About

Copy-paste Nginx config — by someone who got tired of pasting half-right blocks from forum answers.

Nginx proxies apps, terminates TLS, redirects, rewrites, compresses, caches, and rate-limits — but the exact block never sticks between uses, so this site collects the config that actually comes up into one library.

Each snippet is a complete server/location block with a short explanation, where it belongs, the nginx -t / reload commands, and the gotchas. Directives target modern Nginx (1.18+); version-sensitive ones are flagged. For HTTP security headers (CSP, HSTS) see our sister site headerforge.

Open the full interactive site ↗