How to host multiple .NET Core apps under same url : <p>I am building a few web sites in asp.net core (multiple user interface applications and a web api app).  They all work together, utilising the web api.  For the purpose of my question we'll call them App1, App2 and App3.  I am hosting my websites in IIS.</p>

<p>Typically, in the old .net Framework (4.5.1), I would have one website in IIS, with multiple web apps to host my multiple applications.  Like so:</p>

<ul>
<li><p>WebSite1 - running on port 443</p>

<ul>
<li><p>App1</p></li>
<li><p>App2</p></li>
<li><p>App3</p></li>
</ul></li>
</ul>

<p>If the website (WebSite1) runs on port 443 (using the SSL cert), that means all apps are accessible via one domain url as follows:</p>

<ul>
<li><p><a href="https://www.myapp.com/App1/" rel="noreferrer">https://www.myapp.com/App1/</a></p></li>
<li><p><a href="https://www.myapp.com/App2/" rel="noreferrer">https://www.myapp.com/App2/</a></p></li>
<li><p><a href="https://www.myapp.com/App3/" rel="noreferrer">https://www.myapp.com/App3/</a></p></li>
</ul>

<p>With different app names at the end of the url to identify them.</p>

<p>When hosting the new asp.NET Core applications, I host in IIS as well, and following the documentation for asp.NET Core web site deployment, I host each .NET Core web app in a different site within IIS. </p>

<p>As I have one domain name for all my sites, for example, <a href="https://www.example.com" rel="noreferrer">https://www.example.com</a> (I'm using an SSL cert), I have to give the other websites different ports.  So I end up with something like this:</p>

<ul>
<li><p>WebSite1 - running on port 443</p></li>
<li><p>WebSite2 - running on port 444</p></li>
<li><p>WebSite3 - running on port 445</p></li>
</ul>

<p>All of these apps are then accessible via these domain name urls:</p>

<ul>
<li><p><a href="https://www.example.com/" rel="noreferrer">https://www.example.com/</a> or <a href="https://www.example.com:443/" rel="noreferrer">https://www.example.com:443/</a></p></li>
<li><p><a href="https://www.example.com:444/" rel="noreferrer">https://www.example.com:444/</a></p></li>
<li><p><a href="https://www.example.com:445/" rel="noreferrer">https://www.example.com:445/</a></p></li>
</ul>

<p>How do I host asp.NET Core applications all under one website as different "Applications", meaning they resolve to the same domain name url (<a href="https://www.example.com" rel="noreferrer">https://www.example.com</a> and the forward slash app name identifies which app we want)?  OR alternatively, how do I take what I have configured now with the ports and route them all so App1 is default for example.com/, App 2 is example.com/app2/, and App 3 is example.com/app3/?</p>

<p>Am I looking at this .NET Core deployment completely the wrong way?</p>

<p>Thanks in advance for any pointers!</p>
