Sign in
Log inSign up

Can you map multiple domains to the same machine?

Default profile photo
Anonymous
·Jan 22, 2018

I'm planning to run multiple NodeJS applications on the same machine on different ports. Each application needs to be accessible via their own domains names. Is possible to have multiple domains point to the same machine but to different ports?

For example,

Application1 is running on port 3000 and should be accessible by going to domain1.com

Application2 is running on port 4000 and should be accessible by going to domain2.com

Application3 is running on port 4000 and should be accessible by going to domain3.com

etc