Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
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
    
I'm reading now your post. Thank you! –  Jenan Mar 10 '12 at 10:06
    
Put your link as an answer please. –  Jenan Mar 10 '12 at 10:07
add comment

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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