See which location block nginx picks for a URI, and test rewrites.
A server block (or bare location blocks). Parsed locally; nothing leaves this page.
Query strings are ignored and percent-encoding is decoded, as nginx does before matching.
Paste a config to test
See which location block wins, why, and where the request ends up.