Nginx Config Generator - Free Server Block Builder | IconVault
Build a production-ready nginx server block with SSL, gzip, reverse-proxy and PHP-FPM modes. Live preview, copy or download. Free.
Nginx Config Generator
Production-ready nginx server blocks in clicks
Enable SSL
Listens on 443 with TLS 1.2/1.3
Gzip compression
Compress text, CSS, JS and SVG
Cache static assets
30-day immutable cache headers
Proxy headers
Forwarded-For, Host, WebSocket upgrade
5 of 5 free generations left - runs fully in your browser, nothing is uploaded.
Live preview: example.com.conf
# Generated by IconVault Nginx Generator
# Place in /etc/nginx/sites-available/ and symlink to sites-enabled,
# then run: sudo nginx -t && sudo systemctl reload nginx
server {
listen 80;
listen [::]:80;
server_name example.com;
root /var/www/html;
index index.html index.htm;
client_max_body_size 10M;
# Gzip compression
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/xml image/svg+xml;
location / {
try_files $uri $uri/ =404;
}
# Long-lived cache for versioned static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
# Security: deny hidden files
location ~ /\. {
deny all;
}
}
After downloading, place the file in /etc/nginx/sites-available/, symlink it into sites-enabled, then run sudo nginx -t && sudo systemctl reload nginx to apply.
About this tool
IconVault's Nginx Config Generator builds a production-ready server block from a simple form: domain, root, port, SSL with force-HTTPS, gzip, www redirects, plus static, reverse-proxy and PHP-FPM modes. The nginx.conf preview updates live as you change options, and you can copy or download the finished config.
Everything runs fully in your browser, so no server details ever leave your device. It is free to try (repeated use may prompt for Pro), and the generated config includes the deploy steps: place it in sites-available, symlink it to sites-enabled, then test and reload.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon