Nginx Config Generator
v1.0.2Generate nginx server blocks with SSL, reverse proxy, and location blocks.
Generates nginx server block configuration for common setups — static sites, reverse proxies, SSL termination, HTTPS redirects, gzip compression, and caching headers — based on form inputs.
How to use- →Select a preset (Static Site, Reverse Proxy, PHP-FPM) as a starting point for your configuration.
- →Fill in the domain name, document root or upstream address, and SSL certificate paths.
- →Enable the SSL/TLS section to add HTTPS redirect and certificate configuration with secure cipher suites.
- →Copy the generated server block and place it in /etc/nginx/sites-available/ on your server.
Test the generated config with nginx -t before applying to production.
Settings
Extra location blocks
Generated config
server {
listen 80;
server_name example.com;
root /var/www/html;
index index.html index.htm;
client_max_body_size 10m;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml;
gzip_min_length 256;
location / {
try_files $uri $uri/ =404;
}
}