Skip to main content

Nginx Config Generator

New

Generate an Nginx server block for static sites or reverse proxies.

nginxconfigservergenerate
Read the guide
Shortcuts:⌘ KSearch

Build a common static-site or reverse-proxy nginx server block.

Serve a static site with root, index, and try_files.

Frequently Asked Questions

If I enable SSL, does this also add an HTTP-to-HTTPS redirect?

No. It simply adds listen 443 ssl plus the certificate lines inside the same server block. It does not create a second redirect server or force 80 to 443.

What changes between static-site mode and reverse-proxy mode?

Static mode writes root, index, and a try_files location block. Proxy mode writes a location / block with proxy_pass and whichever proxy_set_header lines you leave enabled.

Can I generate multiple server blocks or upstream groups?

No. This builder outputs one server block only. There is no UI for extra locations, upstream blocks, redirects, or multi-vhost setups.

Why are the Host and X-Forwarded headers included?

Those checkboxes map directly to common proxy_set_header lines. They are on by default because they are frequently needed when nginx sits in front of an app server.

Does it validate my upstream URL or certificate paths?

No. Those values are treated as raw text and inserted directly into the config, so typos will still appear in the generated output.

Related Tools