Nginx Config Generator

Generate a starter Nginx server block configuration you can copy straight into your site's config files.

NGINX Config Generator

Build a readable starting server block for a static site, single-page app, or reverse proxy. Your values stay in this browser.

Configuration options

Live configuration preview

13 lines

server {
    listen 80;
    server_name example.com;

    client_max_body_size 1m;

    root /var/www/example.com;
    index index.html;

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

Starting point only: review paths, enabled modules, existing includes, and routing for your server. Run nginx -t on the target machine before reloading NGINX.

Official NGINX references

Check directive behavior and requirements for the NGINX version and modules installed on your server.

NGINX Config Generator features

Generate editable NGINX server blocks with validated fields and clear deployment guidance.

  • Static website server blocks with file-not-found handling
  • SPA server blocks with explicit index.html fallback
  • Reverse proxy blocks with forwarding headers
  • Optional WebSocket upgrade headers
  • Optional HTTPS server and canonical-host HTTP redirect
  • Validated hostnames, ports, paths, and request-size limits
  • Copyable preview and .conf download
  • Browser-local generation with no account required

NGINX Config Generator FAQ

Does this tool verify the configuration with NGINX?

No. It validates form fields and generates a template in your browser. Review it for your environment and run nginx -t on the target machine before reloading.

Which site types can I generate?

Choose a static website, a single-page app with an index.html fallback, or a reverse proxy to an HTTP or HTTPS upstream origin.

Does the HTTPS option issue a certificate?

No. It references certificate and key files you already have. Confirm the SSL module is available and both paths exist on the server.

Infinio Tools
© 2026 Infinio Labs