BuildUtilities

Nginx Config Generator – Free Online Tool

Build nginx server blocks visually. Configure SSL, gzip, reverse proxy, SPA routing, and static asset caching.

✦ FreeNo SignupInstantDevOpsDevOps Config Files Guide
server {
    listen 80;
    server_name www.example.com;
    return 301 $scheme://example.com$request_uri;
}

server {
    listen 80;
    server_name example.com;
    root /var/www/html;
    index index.html;

    gzip on;
    gzip_types text/plain text/css application/json application/javascript text/xml image/svg+xml;
    gzip_min_length 1000;

    location / {
        try_files $uri $uri/ =404;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
        expires 30d;
        add_header Cache-Control "public, no-transform";
    }
}

How to Use Nginx Config Generator

  1. 1

    Set Domain

    Enter your domain name.

  2. 2

    Configure

    Toggle SSL, gzip, proxy, SPA mode, and caching.

  3. 3

    Download

    Download or copy your nginx.conf.

Common Use Cases

  • Setting up web servers
  • Configuring reverse proxies
  • Deploying SPAs with proper routing

Share

Share a link to this tool. Results can be passed via URL parameters.

https://buildutilities.com/share/nginx-config-generator

Frequently Asked Questions

More DevOps Tools

Tools for Docker, Kubernetes, cron, and environment management.

View all DevOps tools
Tip Jar