location block
A block inside server with rules for part of the paths: location /api/ catches requests whose path starts with /api/. Of the matching prefixes the longest wins.
A block inside server with rules for part of the paths: location /api/ catches requests whose path starts with /api/. Of the matching prefixes the longest wins.