40 Default Domain Name Port In This Year

All a domain name does is resolve to an ip address the port is completely independent of that process.
Default domain name port. Client connects from port 47382 to your port forward port 3030. Source port of the packet stays the same. Now i would like to access my applications through this domain.
Dns turns the domain name into an ip address. You can make it work in nginx in the sense that you could make nginx serve your application on port 80. It has no information about the port to connect to.
How to install nginx on ubuntu 14 04 lts. We have two applications on our server. I have a domain just bought.
Your router replaces the destination ip address and port on the packet to your port forward ip address and port 80. Add a new server block. That can only be changed on the client side and current web browsers have no mechanism to look up the port dynamically.
Domain names have nothing to do with port numbers at all. In order to achieve what you are wanting to do you will either need to change the server listening port to port 80 which is the default http port port 443 which is the default. One is with port 3000 and other is with port 3001.
Dns only handles domain ip mapping. It cannot map the default port 80 to a custom port you will have to use a reverse proxy for that. First add a dns record for your subdomain.