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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to