I am trying to make use of apache and tomcat behind a load-balancer which causes requests to hit the individual servers on a different port from the user-visible port. Unfortunately, whenever issuing a redirection, tomcat would include the 'behind the scenes' port, instead of the public one. Apache manages not to do this (due to correct configuration of Port).
In jakarta-tomcat-connectors-4.0.6-src/webapp/apache-1.3/mod_webapp.c in the routine wam_invoke() there is code to populate a request structure with client and server host data, and it includes the code req->serv->port=ntohs(con->local_addr.sin_port); I believe this is wrong; it should instead use the same information as Apache uses to populate SERVER_PORT for CGIs; this is what the Servlet spec says too. Therefore that code should be: req->serv->port=ap_get_server_port(r); Unfortunately, I'm currently having to use ancient versions of tomcat and the mod_webapp connector (yes I'm aware of the security issues), so apologies if this is no longer relevant or was fixed some time ago. Cheers, Phil --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
