Question 1 of 6
Requests hit both
location /images/ and
location /images/avatars/. Which serves the request?
Prefix location matching is longest-match-wins, not first-match.
NGINX remembers the longest prefix that matched and only replaces it when a longer one matches. Order matters only for regex locations and exact matches (
Review this lesson
=), which short-circuit everything.