I saw: http://wellconsidered.be/post/10519707671/node-js-on-nginx and Node.js + Nginx - What now?
But in their tutorials put:
server_name www.yoursite.com;
or
server_name yourdomain.com yourdomain;
But in my case I don't have a domain, i have a static IP to my machine in the enterprise (192.168.1.16). I should set the server_name as 192.168.1.16? But anyway I can also set to www.google.com? I cannot understand the restrictions or what exactly does the server_name variable.
Also I see
listen 80;
server_name www.yoursite.com;
Why do I listen to 80 in this case? It's the port of what exactly, of the local server or what?
I imagine nginx should be a global router for the server and every request received at it's static ip (192.168.1.16: don't know the port?? it matters anyway here?) would be redirected to the internal ips, this is why I don't understand why I should define the server_name..
I hope a better explanation for someone that never worked with a server.
I'm very very new to ubuntu and server configuration so this might be a very obvious question.