Process Flow - server_name directive
Start: HTTP request arrives
Check Host header
Match server_name directive?
No→Default server handles request
Yes
Route request to matching server block
Process request with matched server config
Send response back to client
The server_name directive matches the Host header of incoming requests to route them to the correct server block.