title: configure apache to send all requests to tomcat
body: <p>My Spring app deployed to prod server (shared tomcat 5.5) would respond to all URL calls with 404 error (except /). After 3 days of hard work, I found that:</p>
  
  <blockquote>
    <p>The problem is that in the production environment tomcat is being
    fronted by an apache httpd which does not forward requests to tomcat
    for urls of the form /foobar (without an extension). Apache doesn't
    know how to deal with those URLs and tries to serve them as static
    files from the disk.</p>
  </blockquote>
  
  <p>So, I need to configure apache to send all requests to tomcat. I believe, that would require changes to .htaccess files. I have .htaccess files in the below locations:</p>
  
  <pre><code>/public_html/.htaccess
  /public_html/WEB-INF/.htaccess
  </code></pre>
  
  <p>Please help me with .htaccess content to achieve desired objective.</p>