Nginx Config Generator
CodeGenerate an nginx config for a reverse proxy, static site, SPA, PHP-FPM or domain redirect, with HTTPS, www redirects, gzip, WebSockets, load balancing and rate limiting
About Nginx Config Generator
Pick what the site is (a reverse proxy in front of a Node, Python or Go app, a static site, a React or Vue single-page app, a PHP-FPM app like Laravel or WordPress, or an old domain that should redirect) and get a complete nginx server file you can drop into /etc/nginx/conf.d/. HTTPS comes with the Mozilla intermediate TLS settings, a one-hop HTTP and www redirect, HSTS and security headers, and the certbot command to get the certificate before nginx -t will pass. It handles the details that usually cost an evening: the WebSocket Connection map, keepalive to an upstream pool, a try_files fallback that never caches index.html, PHP's SCRIPT_FILENAME, and asset caching that does not silently drop your add_header lines. Everything is generated in your browser, and the nginx config explainer is there if you want a second opinion on a config you already have.
How to use Nginx Config Generator
- 1.Choose the site type, enter your domain(s) and the backend address, document root or redirect target.
- 2.Toggle HTTPS, the www redirect, gzip, WebSockets, rate limiting and the other options; the config updates as you type and the Share button keeps every setting in the link.
- 3.Copy or download the .conf file, run the certbot command if it shows one, then sudo nginx -t and reload.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/nginx-config-generator \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"serverName":"example.com www.example.com","mode":"reverse-proxy","upstream":"http://127.0.0.1:3000","wwwRedirect":"to-non-www"}'Get an API key from your dashboard · Full API docs →