← All text tools

Nginx config generator

A server block for static sites, PHP, reverse proxy, HTTPS and redirects.

  • Free
  • No sign-up
  • Works on any device

About Nginx config generator

Choose a static site, PHP, reverse proxy, HTTPS or redirect setup and get a matching Nginx server block to adapt. Set your domain, root folder and upstream port. Test the file with nginx -t before reloading, so a typo does not take every site on the server offline.

How to use Nginx config generator

  1. Choose the site type: static, PHP, reverse proxy or redirect.
  2. Enter your domain, root folder or upstream address, and HTTPS settings.
  3. Copy the server block into your Nginx configuration.

Why use this tool?

Also known as

Frequently asked questions

How do I check an Nginx config before applying it?

Run nginx -t to test the syntax, then nginx -s reload or systemctl reload nginx to apply it without dropping connections.

Where do I save the generated config?

Common places are the sites-available folder with a link in sites-enabled, or the conf.d folder. The location depends on your Linux distribution.

Why do I get a 502 error with the proxy setup?

It usually means Nginx cannot reach the upstream app. Check the address and port, and confirm the app is running.

Is Nginx config generator free?

Yes. Nginx config generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Nginx config generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools