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