In this tutorial it is written that after matching against the listen
directive, nginx
will match agains the server_name
directive, which can be either an ip adress or a domain name.
But how will it ever be called when you use a domain name? When I go to my browser and write http://myserver/
, this will go the DNS server of my ISP and will tell me that there is no http://myserver/
anywhere to be found.
How does it work?