Process Flow - Why virtual hosting serves multiple domains
Client sends HTTP request
Server receives request
Check Host header in request
Match Host to server block
Serve domain A content
Serve domain B content
Serve default content if no match
Send response to client
The server uses the Host header in the request to decide which domain's content to serve, enabling multiple domains on one server.