Question 1 of 6
rewrite ^/api/(.*)$ /v1/$1 last; — what does
last do?
It re-enters the location search, internally.
last restarts location matching with the rewritten URI (internal, client-invisible). break applies within the current location. Without a flag, subsequent rewrites run; permanent/redirect send 301/302 to the client instead.
Review this lesson