Nginx (Part 2): Routing Requests — Virtual Hosts, Locations and proxy_pass
How nginx picks a site by the Host header and a handler by the path: server blocks as virtual servers, server_name, default_server, SNI, location matching, root vs alias, try_files, the exact proxy_pass path rule, and two real server configs walked through line by line.