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.

All tools

Nginx Config Generator

Production-ready nginx server blocks in clicks

5 of 5 free uses left

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

nginx config generatornginx server block generatornginx conf generatorgenerate nginx confignginx virtual host generatornginx reverse proxy confignginx reverse proxy generatornginx proxy pass examplenginx ssl config generatornginx https redirect confignginx letsencrypt confignginx force httpsnginx gzip confignginx static site confignginx php fpm confignginx nodejs reverse proxynginx proxy to localhost 3000nginx config for react appnginx spa confignginx try files spanginx www to non wwwnginx redirect www to non-wwwnginx server name examplenginx listen 443 sslnginx config file locationnginx sites available examplenginx test confignginx reload confignginx config syntax checkerhow to write nginx confignginx config tutorialnginx beginner guidenginx config best practicesnginx security headers confignginx rate limiting confignginx caching static assetsnginx client max body sizenginx config online toolfree nginx generatornginx config buildervisual nginx confignginx gui generatordocker nginx confignginx docker reverse proxynginx load balancer confignginx upstream examplenginx multiple domainsnginx subdomain confignginx config explainednginx vs apache confignginx config for apinginx cors confignginx websocket proxynginx config template

More tools

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

View all 10+ tools →