DevToolkit

Nginx Config Formatter / Basic Checker

Back home

Browser only

Nginx Config Formatter / Basic Checker

Paste Nginx config to normalize indentation and surface common reverse proxy and HTTPS issues. This is a basic static checker, not a replacement for nginx -t.

Checks braces, server block basics, proxy headers, HTTPS certificate coverage, catch-all server names, and dangerous root or alias paths.

Deep dive

More context for Nginx Config Checker

Helpful when you want a fast nginx configuration test before you reload Nginx or put a generated reverse proxy into service.

Overview

What is this tool?

It formats Nginx config and flags common reverse-proxy, HTTPS, syntax, and server block issues before you touch a live server.

Input samples

Example inputs

Simple reverse proxy

server {
  listen 80;
  server_name example.com;
  location / {
    proxy_pass http://127.0.0.1:3000;
  }
}

HTTPS server

server {
  listen 443 ssl;
  server_name app.example.com;
  ssl_certificate /etc/ssl/certs/app.crt;
  ssl_certificate_key /etc/ssl/private/app.key;
}

Proxy headers

location / {
  proxy_pass http://app:8080;
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

When to use it

Common use cases

  • Run a quick nginx configuration test before a deployment window or reload.
  • Catch common reverse proxy, HTTPS, syntax, and server block mistakes early.
  • Validate the proxy layer after you generate it from Docker-backed or self-hosted services.

Navigation

Explore related workflows

Keep moving through the collection, workflow, and adjacent tools that usually belong with this page.

Answers

FAQ

Is this a substitute for `nginx -t`?

No. It is a basic static checker, so you should still run `nginx -t` on the server.

Does it check every directive?

No. It focuses on common patterns and mistakes that show up in everyday reverse-proxy configs.

Can it help with proxy headers, TLS basics, and syntax checks?

Yes. It is designed to surface those common areas quickly, and it pairs well with the SSL certificate decoder and header tools.

Disclaimer

Disclaimer / limitation note

This is a basic static checker, not a replacement for `nginx -t` or a live test on the server. It cannot fully evaluate included files, runtime upstream behavior, or environment-specific setup, so you should still verify the final config in place.