tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Q. Werty" <q.we...@laposte.net>
Subject JK2, JkUriSet and virtual hosting
Date Mon, 13 Jan 2003 15:48:46 GMT
Hi,

I'am facing a problem with JK2 and virtual hosting.
Configuration : Tomcat 4.1.18/Apache 2.0.43/JK2 2.0.2/Windows 
2000 SP3.

As said in previous messages and in some documentation, it's 
possible to configure URI mapping with JK2 in Apache 
httpd.conf file (as with mod_jk). There exist JkUriSet to do 
this.
This directive work well, except when use with virtual host 
and same context. It seems that JkUriSet directive doesn't  
include hostname in internal configuration.
Does anyone has encountered same problem or does anyone knows 
how to resolve it?

Thanks in advance for any response.

==== Following a longer explanation of the problem ===

Let's say I've got a /samples context in www.srv1.com and 
www.srv2.com host (correctly defined in Tomcat and Apache).
I defined two workers for JK2 (local_1 and local_2). I put the 
following directive in httpd.conf : 

<VirtualHost *>
    ServerName www.srv1.com
#    ... others directives for this host

    <Location /samples>
        JkUriSet worker ajp13:local_1
    </Location>
</VirtualHost>


<VirtualHost *>
    ServerName www.srv2.com
#    ... others directives for this host

    <Location /samples>
        JkUriSet worker ajp13:local_2
    </Location>
</VirtualHost>

=> Results : all /samples URL are forwared to local_2, even 
requests to www.srv1.com.

Some remarks :
1. this configuration, all in workers2.properties with 
[uri:...] and without JkUriSet work very well.
2. when requesting /JkStatus, it appear that only the JkUriSet 
directive by context is used, and WITHOUT hostname


Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message