Nginx Config Generator
Free online Nginx config file generator tool
Nginx Configuration Generator
Nginx is a high-performance web server and reverse proxy. This tool generates common Nginx configurations for static sites, reverse proxies, and SSL setups. Configure the domain, document root, index file, and optional proxy pass.
How to Generate Nginx Config
Enter your domain name, document root path, index file, and optionally a proxy pass URL for backend applications. Click Generate Config to produce the server block. Copy the output to your Nginx sites configuration.
▶Where do I put the generated config?
On Ubuntu/Debian, place it in /etc/nginx/sites-available/ and symlink to sites-enabled/. On CentOS/RHEL, use /etc/nginx/conf.d/. Reload Nginx with nginx -s reload after making changes.
▶How do I enable HTTPS?
Use Certbot (Let's Encrypt) to automatically generate SSL certificates and configure HTTPS. Run: certbot --nginx -d yourdomain.com