Nginx Location Block Builder
Generate correct nginx location blocks for prefix, exact, regex and proxy-pass routing.
–
How to use
Pick a match type, enter the path and upstream, and copy the ready location block.
Frequently asked questions
Which match type should I use?
= for one exact path, plain prefix for a path tree, ~ for case-sensitive regex and ~* for case-insensitive regex.
Does it validate the regex?
It checks the regex compiles in JavaScript and warns you if it is invalid before you copy it.
☕
ToolZap is free forever
Every tool runs 100% in your browser — no uploads, no signups. If a tool saved you time, consider supporting us with a small donation.
💛 Donate via PayPal