How to create sub-domains in Apache Tomcat 8
<p>I have installed Apache tomcat 8 on my windows server 2012 where I need to store my Java applications. I have 3 apps: app1, app2, app3</p>

<p>Right now if I put into my - Tomcat 8.0\webapps folder war file called ROOT.war app starts on address mydomain.com and works fine - but I need to be able to run several apps at the same tomcat  - Thats's why I want to create subdomains </p>

<pre><code>app1 should launch on app1.mydomain.com 
app2 should launch on app2.mydomain.com 
app3 should launch on app3.mydomain.com 
</code></pre>

<p>How can I fulfill this?</p>

<p>I search similar topics here on stack-overflow but nothing helped.</p>

<p>Please help.</p>