tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #114 has been filed.
Date Thu, 14 Sep 2000 07:55:23 GMT
Bug report #114 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/114>

REPORT #114 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: low
Severity: non-critical
Confidence: public
Environment: 
   Release: 3.2b3
   JVM Release: N/A
   Operating System: Solaris
   OS Release: 7
   Platform: Sparc

Synopsis: 
mod_jk.c sets wrong server_name

Description:
mkd_jk.c does not pass the server name from the Host: header
to tomcat.  It passes the canonical server name instead.

This is caused by a conditional on the host name being the
wrong way round.

Patch:

--- src/native/apache1.3/mod_jk.c.orig  Thu Aug 31 16:13:39 2000
+++ src/native/apache1.3/mod_jk.c       Mon Sep  4 09:07:07 2000
@@ -343,7 +343,7 @@
     s->remote_host  = NULL_FOR_EMPTY(s->remote_host);
 
     s->remote_addr  = NULL_FOR_EMPTY(r->connection->remote_ip);
-    s->server_name  = (char *)(r->hostname ? r->server->server_hostname : r->hostname);
+    s->server_name  = (char *)(r->hostname ? r->hostname : r->server->server_hostname);
     s->server_port  = r->server->port;
     s->server_software = (char *)ap_get_server_version();


Mime
View raw message