DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15532>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15532 Ajp13 does not always contain correct server name Summary: Ajp13 does not always contain correct server name Product: Tomcat 3 Version: 3.1.1 Final Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Connectors AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Ajp13 does not always contain the correct server name. Tomcat version is 3.3.1. According to the Servlet API specification ServletRequest#getServerName() should return the same value as the CGI environment variable SERVER_NAME. This is not the case if Tomcat is used with mod_jk and the Apache has a special server name set with the "ServerName" directive and "UseCanonicalName on": * The Ajp13 request does not contain this server name. Instead it always includes the name given in the "Host" HTTP header of the original request, which is then returned by getServerName(). * A CGI script executed by this Apache does get the correct SERVER_NAME, though. The bug is that mod_jk.c does not use the server name in Ajp13 requests as determined by the web server. I haven't tried it but propably the fix is to replace mod_jk.c:431 s->server_name = (char *)(r->hostname ? r->hostname : r->server->server_hostname); by s->server_name = app_get_server_name(r); -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>