0

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

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

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

I want to write - domain.com - and I want to read the source application from the http://31.3.79.11:3000.

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

4
  • 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, 2012 at 10:01
  • I have the apache on port 80.
    – Jenan
    Mar 10, 2012 at 10:02
  • Have a read of that link, it talks about your exact situation.
    – dannymcc
    Mar 10, 2012 at 10:04
  • Put your link as an answer please.
    – Jenan
    Mar 10, 2012 at 10:07

1 Answer 1

1

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

http://m.readwriteweb.com/hack/2010/12/how-to-run-apache-and-nodejs.php

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .