Nginx Location Explainer

Paste Nginx location rules and a request path to explain which block will handle the request.

Configuration input

Match result

Normalized path/static/logo.png

Paste at least one location block to analyze matching.

Locations0
Matched rules0
Regex rules0
Warnings0

Nginx selection order

  1. Exact match (=) wins immediately.
  2. The longest ^~ prefix wins before regex checks.
  3. Regex locations are tested in file order, first match wins.
  4. If no regex wins, the longest normal prefix is used.

Decision steps

Enter a request path and at least one location block to see the decision steps.

Parsed locations

No location blocks were parsed.

Selected block

No location block selected yet.