Free Nginx Config Generator

A production-ready nginx.conf server block — static site, SPA or reverse proxy — in seconds.

Privacy Level 1 — 100% local: your files never leave your browser
Free plan: one config at a time, unlimited use. Nginx Config Generator Pro adds multi-site configs and load-balancer upstreams.

Your server

What does nginx serve?

Options

Sets client_max_body_size. Leave blank to skip it.

Something not working?

Tell us what went wrong — it helps us fix the tool. Only what you type below is sent; your config never leaves your device.

Need more power? Meet Nginx Config Generator Pro

One-time payment. Yours forever. No subscription.

$29
single payment · lifetime updates included
FeatureFreePro
Static, SPA & reverse proxy configsYesYes
SSL, gzip, caching, security headersYesYes
Copy & download nginx.confYesYes
Multi-site configs in one file—Yes
Load-balancer upstream blocks—Yes
Rate limiting & custom location rules—Yes
Certbot command generator—Yes
AdsShown on pageAd-free
Updates—Lifetime free updates

Frequently asked questions

Is my domain or config uploaded anywhere?

No. The config is generated entirely inside your browser from the form you fill in. Nothing is sent to any server.

What is the difference between static and SPA mode?

Static mode serves files as-is and returns a 404 for missing paths. SPA mode adds a fallback (try_files $uri $uri/ /index.html;) so a React, Vue or Angular app handles its own routing — refreshing /dashboard loads the app instead of a 404.

How do I install the generated config?

Save it as /etc/nginx/sites-available/example.com, create a symlink into sites-enabled, then run sudo nginx -t to check the syntax and sudo systemctl reload nginx to apply it. Always run nginx -t first — a syntax error can stop nginx from starting.

Where do I get the SSL certificate paths?

Run sudo certbot --nginx -d example.com (Let’s Encrypt, free) and it will create the certificate files and fill in the paths for you. The default paths in this generator match the layout certbot creates.