Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm new to sys administration, so I play some things virtually at home.

And so, I have one virtual linux with two nodejs applications running there. They listen on two different ports. Lets call the machine "node".

So, I want to make the other virtual linux to accept two different domain requests, and forward them to the two nodejs applications on "node".

Let say:

domain-one.local ===> [node's IP]:8080

domain-two.local ===> [node's IP]:8020

So, can you guide me? ... or tell me where I can find the answer? ... cause I have experience (some ... not very big) at installing, updating, configuring ... but for such things ... I just don't have any idea how to make :) ...

Thanks in advance :)

share|improve this question
add comment

1 Answer

One way can be to use nginx as a reverse proxy on the host machine.

You will need to use 2 server directives. one for each domain.

In case you havent used nginx before, You can refer this

http://tumblr.intranation.com/post/766288369/using-nginx-reverse-proxy

This can also be helpful.

http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html

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.