Process Flow - API routing with location blocks
Client sends HTTP request
Nginx receives request
Check location blocks in order
Match found?
No→Return 404 or default
Yes
Route request to matched location
Serve response from backend or static files
Nginx receives a request, checks location blocks in order, routes to the matching block, or returns default if none match.