title: Apache - Tomcat ProxyPass VirtualHost - Context Path
body: <p>I have a problem configuring apache tomcat ProxyPass directive for two applications that have two different Context Paths in tomcat. The tomcat is running behind an apache and I use the apache to proxy path the requests to tomcat. In apache I want to access both application via a hostname instead of a context path.</p>
  
  <p>Scenario:</p>
  
  <p>tomcat</p>
  
  <pre><code>https://domain:8443/app1
  https://domain:8443/app2
  </code></pre>
  
  <p>in tomcat the applications have the context path app1 and app2</p>
  
  <p>in apache I want to enable both application as follow:</p>
  
  <pre><code>https://app1.host/
  https://app2.host/
  </code></pre>
  
  <p>In apache I have created a configuration for each domain:</p>
  
  <pre><code>ProxyPass /  https://localhost:8443/app1
  ProxyPassReverse / https://localhost:/8443/app1
  </code></pre>
  
  <p>The strange thing is app1 is only available through apache using the context path:  </p>
  
  <pre><code>https://app1.host/app1
  </code></pre>
  
  <p>Is it possible to realize such a setup with apache ProxyPass module?</p>
  
  <p>Thx for your help.</p>