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.

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 "steak.chaos-kitten.com" pointing to one node.js app and "lister.chaos-kitten.com" pointing to another, and perhaps "chaos-kitten.com" 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

1 Answer 1

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

 
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.