nginx first decides which server should process the request. Let’s start with a simple configuration where all three virtual servers listen on port *:80: server { listen 80; server_name example.org www.example.org; ... } server { listen 80; server_name example.net www.example.net; ... } server { listen 80; server_name example.com www.example.com; ... } In this configuration nginx tests only the re
![How nginx processes a request](https://cdn-ak-scissors.b.st-hatena.com/image/square/afaf1457d685b1ac794a4850ea2e9119b6c7fc64/height=288;version=1;width=512/http%3A%2F%2Fnginx.org%2Fnginx.gif)