I have a java webapp running in a Tomcat 6 server, on the same box I have the static part of the site being served from IIS 7.5. I've used ARR to successfully route the requests down into the Tomcat server however I am having a problem with relative links which are created by the dynamic pages on Tomcat.
- myhost.com/myapp routes to iis and serves the user static html.
- myhost.com/myjavaapp is mapped by ARR and url rewriting to myhost.com:(tomcatport)/myjavaapp
When the app returns a dynamic page linking back into the static part of the site relative urls are appearing as myhost.com:(tomcatport)/myapp which then obviously looks in Tomcat and fails returning a 404.
I've found plenty of material for routing down but none for directing traffic back the other way. Has anyone solved this before or know how I can discard the port number?