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

Virtual Host aliases not being routed to Tomcat.

           Summary: Virtual Host aliases not being routed to Tomcat.
           Product: Tomcat 5
           Version: 5.0.19
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Native:JK
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Apache VirtualHosts using the latest mod_jk2 (2.04) for Win32 (both 
precompiled and self-compiled) that use JkUriSet directives within nested 
<Location/> blocks are not forwarding mapped JSP/Servlet requests to Tomcat 
via the mapped worker OTHER than for the main ServerName (URL).

For example the following VirtualHost conf:

## LOAD MOD_JK2
LoadModule jk2_module modules/mod_jk2.so
## NameVirtualHost Entry
NameVirtualHost 192.168.0.2
## MYSITE VIRTUALHOST BLOCK
<VirtualHost 192.168.0.2>
        ServerAdmin [EMAIL PROTECTED]
        ServerName www.mysite.com
        ServerAlias www2.mysite.com
        DocumentRoot "C:\www\mysite\ROOT"
        Alias /userimages "C:\www\mysite\userimages"
        CustomLog "C:\wwwlogs\mysite\www.mysite.com_apache.log" combined
        <Location "/*.jsp">
                JkUriSet worker ajp13:localhost:8009
        </Location>
        <Location "/servlet/*">
                JkUriSet worker ajp13:localhost:8009
        </Location>
        <Location "/WEB-INF/*">
                JkUriSet worker ajp13:localhost:8009
        </Location>
</VirtualHost>

Displays the following behaviour:

When accessing on www.mysite.com (the main ServerName) all JSP requests work 
fine - no problems.

When accessing on www2.mysite.com (the ServerAlias) only the very first JSP 
page (the main welcome file in the ROOT) is processed by Tomcat.  After that 
Apache does not send the relevant JSP requests to the AJP worker and Tomcat 
for processing - the JSP files are treated as plain text and source returned 
to requesting browser.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to