title: How to configure two sub-domains in apache and tomcat set up.?
body: <p>How to configure two sub-domains in apache and tomcat set up.?
  I already have a sub-domain pointed to the server. If the request comes with /test context it will routed to tomcat . This set up done through mod_proxy</p>
  
  <pre><code>ProxyRequests Off
  ProxyPass /test1 http://localhost:8080/test1
  ProxyPassReverse /test1 http://localhost:8080/test1
  SSLProxyEngine On
      SSLProxyCheckPeerCN on
      SSLProxyCheckPeerExpire on
  &lt;Location "/admin"&gt;
    Order allow,deny
    Allow from all
  &lt;/Location&gt;
  </code></pre>
  
  <p>Now my problem is ..
  I am going to have a another application test2 hosted in tomcat and I want to know weather it is possible to point that app to new subdomain.</p>
  
  <p>example</p>
  
  <pre><code>sample.example.com = static site in apache
  sample.example.com/test = test1 application in tomcat
  newsample.example.com = test2 application in tomcat
  </code></pre>