I'm configuring tomcat to forward visitors to a different domain and different port using the tomcat http connector, and proxy settings in the apache site config (as explained here).
A more specific explanation: - I'm running a web app 'yasgui' on domain1.org:8080/yasgui - I'm forwarding it using a http connector to domain2.org/yasgui by configuring the connector like this:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" proxyName = "domain2.org" maxPostSize = "0" proxyPort = "80" />
and adding this to the site config of domain2.org:
ProxyVia On ProxyPass /yasgui http://domain2.org:8080/yasgui
This works perfectly fine when I visit http://domain1.org:8080/yasgui , which gets forwarded to http://domain2.org/yasgui. However, this link does not work: http://domain1.org:8080/yasgui/ (notice the trailing slash). This link shows the page as-is on domain1.
I'm not sure where the error is here: the apache config or the tomcat config. Help is much appreciated!