You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dmitry Letin <dl...@i-com.com> on 2002/09/19 21:10:55 UTC

mod_jk2, virtual hosts, JkUriSet directive

Hi,

Has anybody managed to successfully connect apache virtual hosts to different
instances of tomcat using mod_jk2?

I spent several days looking at all available documentation, mail archives and
a bit of source code but could not make a working solution.

I have no problem of connecting to a single TomcatInstance. Problems start when
I need to connect to two separate instances.

I did check docs in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
and found them not helpful.


For simplicity:
I need to connect /*.jsp from apache VirtualHost1 to TomcatInstance1 
and /*.jsp from apache VirtualHost2 to TomcatInstance2

I would greatly appreciate if somebody could send required fragments from 
a WORKING config files: httpd.conf, workers2.conf and jk2.properties.


Also from jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.c I found:

 * Example:
 *   <VirtualHost foo.com>
 *      <Location /examples>
 *         JkUriSet worker ajp13
 *      </Location>
 *   </VirtualHost>
 *
 * This is the best way to define a webapplication in apache. It is
 * scalable ( using apache native optimizations, you can have hundreds
 * of hosts and thousands of webapplications ), 'natural' to any
 * apache user.

Does anybody knows how to use this directive properly?

I tried to use it - but it did not work as I expected.
What should be specified in place of "worker" and "ajp13"?


Thanks,
Dmitry Letin


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