how to install a node.js server at chat.mydomain.com on a hostgator vps hosting?

anjan picture anjan · Apr 21, 2011 · Viewed 7.7k times · Source

I have a hostgator VPS hosting account.

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

now i want to install node.js server for chat.mydomain.com.

i need some help installing the node.js server.

what i m looking for is, How to setup the node.js server? - I can download and install the node v 0.4.6 but how to make it listen to a port say chat.mydomain.com:8088 like apache? That is install the "node" as a service and listen to port 8088 like apache listens to port 80?

Thanks,
Anjan

Answer

neebz picture neebz · Apr 21, 2011

All you need to is to open up a port to listen to requests e.g. if you want to run Node on 8088 and then access it with chat.mydomain.com.

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