Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

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

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

This can also be helpful.

share|improve this answer

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.