title: How to run PHP and Tomcat on same server environment?
body: <p>Asked this on AskUbuntu a while ago:
  <a href="https://askubuntu.com/questions/630897/apache-httpd-backed-by-both-tomcat-and-php">https://askubuntu.com/questions/630897/apache-httpd-backed-by-both-tomcat-and-php</a>
  but no answers there so I decided to ask here.</p>
  
  <p>Once again - let's say I have server accessible by some domain name e.g. <a href="http://mywebapp.com/" rel="nofollow noreferrer">http://mywebapp.com/</a></p>
  
  <p>I would like to setup the following on that server:</p>
  
  <ul>
  <li>all requests like <code>http://mywebapp.com/blog*</code> are handled by <code>PHP</code> server (Wordpress blog engine to be specific)</li>
  <li>all <strong>other</strong> requests <code>http://mywebapp.com/*</code> are handled by <code>Apache Tomcat</code></li>
  </ul>
  
  <p>I thought that this could be achievable by putting <code>Apache HTTPD</code> server in front of both <code>Tomcat</code> and <code>PHP</code> servers but couldn't find configurations to achieve this.</p>
  
  <p>Could someone please provide any hint on how to achieve this?</p>