How to install node.js server on chat.mydomain.com on vps hosting hosting?

I have a VPS hosting account.

I already have a site in my main domain, say mydomain.com

Now I want to install the node.js server for chat.mydomain.com.

I need help installing node.js. server

What I'm looking for is how to configure node.js server? - I can download and install node v 0.4.6, but how to get it to listen on the port, say chat.mydomain.com:8088 as apache? Is it to set "node" as a service and listen on port 8088, for example, does apache listen on port 80?

Thanks,
Anjan

+6
source share
1 answer

All you need to do is open a port to listen for requests, for example. if you want to run Node on 8088 and then access it through chat.mydomain.com.

According to their support, you need to contact them to open 8088 for you> http://support.hostgator.com/articles/pre-sales-policies/open-new-ports

+8
source

Source: https://habr.com/ru/post/886377/


All Articles