Free Nginx Config Generator
A production-ready nginx.conf server block — static site, SPA or reverse proxy — in seconds.
Your server
What does nginx serve?
Options
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.
| Feature | Free | Pro |
|---|---|---|
| Static, SPA & reverse proxy configs | Yes | Yes |
| SSL, gzip, caching, security headers | Yes | Yes |
| Copy & download nginx.conf | Yes | Yes |
| Multi-site configs in one file | — | Yes |
| Load-balancer upstream blocks | — | Yes |
| Rate limiting & custom location rules | — | Yes |
| Certbot command generator | — | Yes |
| Ads | Shown on page | Ad-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.