I'm trying since days to remove the tomcat context from the URL. The tomcat URL is http://diovmcos03.diogenes.ch:8081/diogenes/leser.html and my httpd virtual host looks like this:
<VirtualHost *:80>
ServerName www2.diogenes.ch
ErrorLog logs/ajp.error.log
CustomLog logs/ajp.log combined
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://localhost:8010/
ProxyPassReverse / ajp://localhost:8010/
</VirtualHost>
when I enter www2.diogenes.ch it shows the URL http://www2.diogenes.ch/diogenes/leser.html 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.
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!