Monday, 17 April 2017

multiple node js app with different domain in same vps

I have a Digitalocean VPS and 3 Nodejs (ExpressJs) application. Now I started all of them in same IP and different port like this: - 95.5.5.8:65001 - 95.5.5.8:65002 - 95.5.5.8:65003

But now I want when anybody writes app1.com, the first app 95.5.5.8:65000 shows to him like this:

  • app1.com -> load server in port 65001
  • app2.com -> load server in port 65002
  • app3.com -> load server in port 65003

All of the applications are in same VPS by the same IP, How can I do this, please?



via Sami Al Morshedi

No comments:

Post a Comment