You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/01 14:08:11 UTC

DO NOT REPLY [Bug 11364] New: - jk2 appears to forward all virtual host requests to Tomcat

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=11364>.
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=11364

jk2 appears to forward all virtual host requests to Tomcat

           Summary: jk2 appears to forward all virtual host requests to
                    Tomcat
           Product: Tomcat 4
           Version: 4.0.4 Final
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Coyote JK 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sms@lateral.net


Using apache 2, set up 2 virtual hosts. The first and default host should have a
Location directive that uses AddHandler to associate jakarta-servlet2 with
itself. The second virtual host should not have the handler added. In the Tomcat
config file set up a host that matches the first apache virtual host.

Start everything up. Connect to virtual host 1, and access the mapped webapp
(for example: http://virtualhost1/content/ ) You should get the page you are
expecting. Now connect to the same path, but for virtualhost2 (eg:
http://virtualhost2/content/ ) This should return a 404, but instead, the
request is forwarded to Tomcat.

In the catalina.out log, the following error is shown:

Aug 1, 2002 1:05:26 PM org.apache.jk.server.JkCoyoteHandler action
INFO: RESET

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>