tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35957] New: - tomcat chooses wrong host if using mod_jk
Date Mon, 01 Aug 2005 05:37:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35957>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35957

           Summary: tomcat chooses wrong host if using mod_jk
           Product: Tomcat 5
           Version: 5.5.9
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:AJP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: skoehler@upb.de


Hi,

with apache's option UseCanonicalName turned on, mod_jk used to send the
ServerName of the virtualhost to tomcat. Since the HTTP-Host-Header didn't
change its value, i guess that the AJP protocol defines a way to send the
servername _and_ the host-header. This worked fine with apache 1.3, tomcat 4.1.

Now, i'm using Tomcat 5.5.9 and Apache 2.0. I have defined a VirtualHost with
the ServerName "abc" and the ServerAlias "def" in Apache. In Tomcat, there's a
host called "abc" without any alias. The UseCanonicalName-option is turned on.

If i surf to http://abc/, everything works. When i try http://def/, it doesn't
work. Tomcat searches for a host/alias called "def" which isn't there.

it seems that the AJP-Connector only uses the http-host-header instead of the
seperate filed defined by AJP (which i assume exists).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message