I have a web application running on port 8080 on my server: myip:8080/app
I have the following config in my httpd.conf
<VirtualHost *:80>
ServerName subdomain.mydomain.com
ServerAlias mydomain.com
ProxyPass /app http://localhost:8080/app/
ProxyPassReverse /app http://localhost:8080/app/
</VirtualHost>
This works fine and makes the app available at subdomain.mydomain.com/app
Now I'm struggling to make it available at subdomain.mydomain.com (without the /app). I first tried
<VirtualHost *:80>
ServerName subdomain.mydomain.com
ServerAlias mydomain.com
ProxyPass / http://localhost:8080/app/
ProxyPassReverse / http://localhost:8080/app/
</VirtualHost>
and also added
ProxyHTMLURLMap /app/ /
but both don't seem to work. The main page loads, but all javascript and CSS links still point to /app/... which returns the main html page instead of the asset.
What am I missing? Am I on the right track or is there a completely different (better) way to achieve this?
The application is a Tapestry web application in Tomcat 7 on Ubuntu 12.04.
Any insights on performance would be interesting too.