Nginx Location Block Builder cover

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.

Related tools

ASCII Art Text BannerASCII Code TableBase32 Encoder / DecoderBase64 Encode DecodeBase64URL EncoderBcrypt Cost Estimator