NGINX Config Validator
Paste an nginx.conf or a server/location snippet and catch the structural
mistakes that make nginx -t fail — unbalanced braces and directives missing
a semicolon — plus well-known footguns. It runs entirely in your browser and never
reloads nginx.
Results
Results appear here as you type.
100% private — validation runs entirely in your browser. Your input is never uploaded.
server {
listen 443 ssl;
server_name app.example.com;
ssl_certificate /etc/nginx/tls/app.crt;
ssl_certificate_key /etc/nginx/tls/app.key;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /healthz {
return 200 "ok";
}
} What it checks
- • Unbalanced braces
{/}, located to the line. - • Missing semicolons — the most common nginx config error.
- • "if is evil" usage that misbehaves in location context.
- • Comment- and string-aware scanning (won't false-flag
#in a value).
A structural check — always confirm with nginx -t before reloading.