Hello.
I am attempting to integrate Tomcat (5.0.28) and Apache (2.0.54) by following the instructions at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/proxy-howto.html. So, I have two lines in my httpd.conf that look like this:
ProxyPass /myapp
http://mydomain.com:8081 ProxyPassReverse /myapp
http://mydomain.com:8081 And I have a line in my server.xml file that looks like this:
<Connector port="8081" proxyPort="80" proxyName="www.mydomain.com"/>
This works . . . sort of.
When I point my browser to "mydomain.com/myapp", the "Welcome to Tomcat" screen comes up, but not the images. Their addresses all lack the "/myapp" part, so of course they're broken E.g., "http://www.mydomain.com/tomcat.gif" should be "http://www.mydomain.com/myapp/tomcat.gif", but it's not.
This further complicates things if I want to go to the manager application --- by manually entering the address with the "/myapp" section, I do ok. But that's annoying.
I know that there must be a simple solution to this --- I am just not finding it.
Thanks.