I have a small lab at home with several virtual machines that each has a web application:
http://vm1:8080
http://vm2:8081
http://vm3:8082
I also have a free dynamic DNS service (noip.com) that I configured on my internet router. address for example : home.ddns.net
is it possible to use Nginx as a reverse proxy to serve each web application as a subdomain to the home domain/subdomain ?
like this:
http://app1.home.ddns.net:8080 => http://vm1:8080
http://app2.home.ddns.net:8081 => http://vm2:8081
or even this: (use port 80) ?
http://app1.home.ddns.net => http://vm1:8080
http://app2.home.ddns.net => http://vm2:8081
if that is not possible, can I use it like this? :
http://home.ddns.net/app1 => http://vm1:8080
http://home.ddns.net/app2 => http://vm2:8081
my question seems simple but I was not able to find an answer online and on stackoverflow :(
Thanks