NoIP, multiple domains, one dynamic IP, 2 servers using same port

36 Views Asked by At

I can't seem to wrap my head around something to know if it is or not possible.

Situation:

  • I have noip that redirect to my dynamic IP
  • I have two local servers running services, including web server, one on each server, both listening on port 80 I have multiple domains names on no IP.

What I would like:

  • access port 80 from domain 1 that redirect on my dynamic IP and hit server 1 web server
  • access port 80 from domain 2 that redirect on my dynamic IP and hit server 2 web server

Things I don't know:

  • will I be able to detect it's coming from domain 1 or 2? if that is the case, then I guess I could use a reverse proxy that my router would point to when request arrive on port 80 then dispatch to server 1 or 2?

What I get to avoid is to change port to redirect to the good server(ex: 80, 81).

Thank you, any help or clarification is appreciated.

0

There are 0 best solutions below