I have a VPS server. I have a system - CentOS.

I use the program - node.js. The application runs on the address and port:

I want to write the domain without port to the browser. And to load applications from the IP address :

I want to write - domain.com - and I want to read the source application from the

How can I redirect a domain to this ip and port?

  • If there is nothing else on the server then why not change the port to 80? m.readwriteweb.com/hack/2010/12/… – dannymcc Mar 10 '12 at 10:01
  • I have the apache on port 80. – Jenan Mar 10 '12 at 10:02
  • Have a read of that link, it talks about your exact situation. – dannymcc Mar 10 '12 at 10:04
  • Put your link as an answer please. – Jenan Mar 10 '12 at 10:07

The following link suggests using mod_redirect and/or a library to run Apache through node.js


The library: https://github.com/nodejitsu/node-http-proxy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.