I use the node.js and socket.io.
My application runs on the port 3000. The application starts from from the url: mydomain.com:3000/
I want to run the application from mydomain.com – I want to remove the port from the url.
Where and how can I set this setting?
Find your
server.listencall and change the port from3000to80. Don’t forget that you have to run the program with theCAP_NET_BIND_SERVICEcapability (seecapabilities(7)for details) in order to bind to ports less than 1024 on Linux systems.rootprivilege will contain this, and other, privileges.