Process Flow - Root directive
Start nginx config parsing
Find server block
Look for root directive
Set root path for requests
Receive HTTP request
Combine root path + URI
Serve file from combined path
Send response to client
The root directive sets the base folder for serving files. When a request comes, nginx combines this root path with the request URI to find the file to serve.