Code tool

Nginx Config Generator

Draft static, loopback proxy, redirect-only, or WordPress PHP-FPM configuration with optional HTTPS, gzip, cache, headers and rate limits.

In-browser processingNo account requiredPrivacy details ↗

Use one ASCII domain with at least two labels or an IPv4 address. Ports: 1–65535 (HTTP: 80/8080); paths: absolute, ≤250 characters, letters/digits/_/./- only, no empty, . or .. segments. No whitespace, variables, braces or semicolons. Rate/burst: 1–1000; cache: 1–365 days. Fill all enabled fields.

Text only, for Nginx ≥1.24 with the selected modules and TLS-library support. Paste the whole draft inside an existing http context, not inside server; merge duplicate map/zone names. Certificate paths are placeholders, not certificates; verify paths, permissions, DNS, matching certificates, MIME types and inherited settings. WordPress requires an existing installation and distribution fastcgi_params file; uploads PHP is blocked. Proxy Host/X-Real-IP/X-Forwarded-For do not establish trust: the upstream must accept forwarded identity only from this proxy and ignore untrusted preceding hops. IP limits use the connection address, so a front proxy shares its quota unless you separately configure trusted real-IP handling. Basic headers/TLS are not a security certification. Back up and run nginx -t on the target before reload; this tool never installs, checks or deploys.

Choose settings and generate a draft.

Sources: UtilityKit · Nginx

A QUICK WALKTHROUGH

How to use this tool

  1. Choose the mode and enter your actual host, path and endpoint.
  2. Select applicable options, generate, then review the whole http-context draft.
  3. Copy or download and validate on the actual target before any reload.

Draft for an existing http context

Text only, for Nginx ≥1.24 with the selected modules and TLS-library support. Paste the whole draft inside an existing http context, not inside server; merge duplicate map/zone names. Certificate paths are placeholders, not certificates; verify paths, permissions, DNS, matching certificates, MIME types and inherited settings. WordPress requires an existing installation and distribution fastcgi_params file; uploads PHP is blocked. Proxy Host/X-Real-IP/X-Forwarded-For do not establish trust: the upstream must accept forwarded identity only from this proxy and ignore untrusted preceding hops. IP limits use the connection address, so a front proxy shares its quota unless you separately configure trusted real-IP handling. Basic headers/TLS are not a security certification. Back up and run nginx -t on the target before reload; this tool never installs, checks or deploys.

Server mode

Use one ASCII domain with at least two labels or an IPv4 address. Ports: 1–65535 (HTTP: 80/8080); paths: absolute, ≤250 characters, letters/digits/_/./- only, no empty, . or .. segments. No whitespace, variables, braces or semicolons. Rate/burst: 1–1000; cache: 1–365 days. Fill all enabled fields.

Sources

https://utilitykit.tools/nginx-snippet-generator · https://nginx.org/en/docs/

GOOD TO KNOW

Common questions

Does it configure or verify my server?

No. It generates local text, uploads nothing and makes no server changes.