Question 1 of 6
location /api/ { proxy_pass http://backend/v1/; } — a request for
/api/users is forwarded as what?
A URI part on proxy_pass replaces the matched location prefix.
With a URI, proxy_pass replaces the /api/ prefix with /v1/. Without a URI (just http://backend) the full original path passes through. Getting this wrong is the number-one proxying bug.
Review this lesson