title: How can I host multiple apps under one domain name?
body: <p>Say I own a domain name: <code>domain</code>, and I host a static blog at <code>www.domain.com</code>. The advantage of having a static site is that I can host it for free on sites like <a href="https://www.netlify.com/" rel="nofollow noreferrer">netlify</a>.</p>
  
  <p>I'd now like to have several static webapps under the same domain name, so I don't have to purchase a domain for each webapp. I can do this by adding a subdomain for my apps. Adding a subdomain is easy enough. <a href="https://www.youtube.com/watch?v=sDmErvLJSnc" rel="nofollow noreferrer">This video</a> illustrates how to do it with GoDaddy for example. I can create a page for my apps called <code>apps.domain.com</code> where <code>apps</code> is my subdomain.</p>
  
  <p>Say, I have several static webapps: <code>app1</code>, <code>app2</code>, <code>app3</code>. I don't want a separate subdomain for each of these, e.g., <code>app1.domain.com</code>. What I'd like instead is to have each app as a subfolder under the <code>apps</code> subdomain. In other words, I'd like to have the following endpoints:</p>
  
  <ul>
  <li><code>apps.domain.com/app1</code></li>
  <li><code>apps.domain.com/app2</code></li>
  <li><code>apps.domain.com/app3</code></li>
  </ul>
  
  <p>At the <code>apps.domain.com</code> homepage, I'll probably have a static page listing out the various apps that can be accessed.</p>
  
  <p>How do I go about setting this up? Do I need to have a server of some sort (e.g., <a href="https://www.nginx.com/" rel="nofollow noreferrer">nginx</a>) at <code>apps.domain.com</code>? The thing is I'd like to be able to develop and deploy app1, app2, app3 etc. independently of each other, and independently of the apps subdomain. Each of these apps will probably be hosted by netlify or something similar.</p>
  
  <p>Maybe there's an obvious answer to this issue, but I have no idea how to go about it at the moment. I would appreciate a pointer in the right direction.</p>