Nginx Config Generator
Generate an nginx server block for a website without writing the configuration by hand.
- Runs in your browser No upload — everything runs on your device.
- No sign-up, no watermark Free to use, no account needed.
- Files never uploaded Nothing leaves your device.
- 5,400+ tools, one site File, unit and currency tools in one place.
Generate an nginx server block for a website without writing the configuration by hand. You enter the domain name, the port, the document root, the index file, and whether the site uses SSL, PHP, or a reverse proxy to another service. The tool assembles a complete server block: the listen and server_name lines, the root and index settings, a location block that serves files or proxies requests with the usual headers, an optional PHP location using php-fpm, and certificate lines when SSL is on. The certificate paths are placeholders naming your domain, so replace them with your real certificate and key before using the file — the tool warns you about this. Everything runs in your browser, so nothing is uploaded or stored, and there is no account to create. Check the result against your setup before reloading nginx.
How to use Nginx Config Generator
- Set the options adjust the settings below — length, range, colours or dates.
- Click Convert the tool runs entirely in your browser — nothing is uploaded.
- Read your result it appears below the tool.
- Download the result save it for your records.
- Convert another change the options and convert again — no sign-up, no limits.
Format facts
| Input | No file needed — set the options below the box and convert. |
|---|---|
| Engine | Built-in browser engine |
| Category | Developer Tools |
Frequently asked questions
What does the generated file contain?
A server block with the listen port, the domain name, the document root, the index file, and a location block that serves files or proxies requests. Optional SSL and PHP sections are added when you turn them on.
What do I do about the certificate paths?
Replace them with your real certificate and key files. The tool writes placeholder paths using your domain name and warns you about them — do not reload nginx with the placeholders in place.
When should I use the reverse proxy option?
When nginx sits in front of another service, such as an app running on port 3000. The location block then forwards requests to that service instead of serving files from disk.
Do I need the PHP section?
Only if the site runs PHP. Without it, PHP files would be served as downloads instead of being executed by php-fpm.
Was this tool helpful?
Thanks — your feedback helps us improve this tool.
Sorry it didn’t help — tell us what went wrong and we’ll fix it.