title: tomcat7 fronted by apache 2.4 with ajp - removing tomcat context
body: <p>I'm trying since days to remove the tomcat context from the URL. The tomcat URL is <a href="http://diovmcos03.diogenes.ch:8081/diogenes/leser.html" rel="nofollow">http://diovmcos03.diogenes.ch:8081/diogenes/leser.html</a> and my httpd virtual host looks like this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerName www2.diogenes.ch
          ErrorLog logs/ajp.error.log
          CustomLog logs/ajp.log combined
          &lt;Proxy *&gt;
                  AddDefaultCharset Off
                  Order deny,allow
                  Allow from all
          &lt;/Proxy&gt;
          ProxyPass / ajp://localhost:8010/
          ProxyPassReverse / ajp://localhost:8010/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>when I enter www2.diogenes.ch it shows the URL <a href="http://www2.diogenes.ch/diogenes/leser.html" rel="nofollow">http://www2.diogenes.ch/diogenes/leser.html</a> but I would like to have it like this: diogenes.ch/leser.html (without "diogenes"). 
  The problem is, that I can't proxy / to ajp://localhost:8010/diogenes because my DAM and some other virtual folders are not located behind /diogenes/. So if I redirect every request from / to /diogenes/ all my pictures and css and stuff won't be reachable.</p>
  
  <p>I tried best to combine the proxy with mod_rewrite, but I couldn't find any solution yet. Your help would be highly appreciated!! Thanks in advance!</p>