Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The situation may be resolved by my intention to purchase an IPv6 prefix for the VPS, but in the mean time I'd quite like to know if this is possible.

Basically what I want to achieve is a simple interface to Node.JS apps running on the VPS via domain names, so that for instance I could have "" pointing to one node.js app and "" pointing to another, and perhaps "" itself pointing to a third.

I know you can't use DNS to point to a specific port, but is there some software solution I can employ that will redirect incoming GET requests to the appropriate node.js app based on the domain name?

share|improve this question
up vote 3 down vote accepted

The technology you're looking for is a proxy server. It sits in front of your backend, accepts connections for the relevant domains using something like name based virtual hosting and proxies them off to the ports you define. You can use Apache, Nginx or even node itself as a proxy.

share|improve this answer
Yes, this is exactly what I was thinking of. Thanks so much! :) – Chris Browne Mar 1 '13 at 8:56

Your Answer


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.