
Server names are defined using the server_name directive and determine which server block is used for a given request. See also “How nginx processes a request”. They may be defined using exact names, wildcard names, or regular expressions:
NginX behaves in a way, such that,
Nginx first decides which server should process the request. Let’s start with a simple configuration where all three virtual servers listen...