1.) The host in worker.properties is the host tomcat is running on (that's
not related to the the apache host. You can run tomcat on a different
machine than apache)

2.) You seem to have configured your mod_jk-Mounts yourself so you don't
have to bother with mod_jk.conf-auto. It's an auto-generated example ans
doesn't take all configuration into account.

3-5.) Your approach is almost correct, but if you want them running in
different JVMs you have to run multiple Tomcat-instances. So don't configure
your different ports in one server.xml but install and run tomcat multiple
times and with their own server.xml each.

/path/tomcat1/conf/server.xml (in there: port=8110)
/path/tomcat2/conf/server.xml (in there: port=8111)
...

$ /path/tomcat1/bin/startup.sh
$ /path/tomcat2/bin/startup.sh
...

Regards,
Andreas
> -----Original Message-----
> From: Dominique BATARD [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 07, 2000 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: workers.properties & virtual hosts
> 
> 
> Tomcat 3.2b6, Apache 1.3.14, NT 4
> 
> I'm running 3 virtual hosts and want to have each one his own JVM
> 
> In server.xml :
> <Connector className....... <Parameter name="port" value="8110"/> ...
> <Connector className....... <Parameter name="port" value="8111"/> ...
> <Connector className....... <Parameter name="port" value="8112"/> ...
> <Connector className....... <Parameter name="port" value="8007"/>...
> <Host name="host1"> <Context path="" ......
> <Host name="host2"> <Context path="" ......
> <Host name="host2"> <Context path="" ......
> 
> In workers.properties :
> worker.list=ajp12, ajp13, ajp-8110, ajp-8111, ajp-8112
> 
> worker.ajp-8110.port=8110
> worker.ajp-8110.host=localhost
> worker.ajp-8110.type=ajp12
> worker.ajp-8110.lbfactor=1
> ....
> worker.ajp-8111.host=localhost
> ...
> worker.ajp-8112.host=localhost
> ...
> worker.ajp-8007.host=localhost
> 
> In httpd.conf :
> NameVirtualHost 140.228.25.19
> <VirtualHost 140.228.25.19:80>
>   ServerName host1
>   ....
>   JkMount /*.jsp ajp-8110
>   JkMount /servlet/* ajp-8110
> 
>   Idem for host2 .... ajp-8111 and host3 ... ajp8112
> 
> My question is :
> 1 - the worker's host property must be localhost or the vhost 
> server name ?
>      If I use the vhost server name, apache complains and 
> doesn't start
> 
> 2 - I don't see any trace of ajp-8110, ajp-8111, ajp-8112 in
> mod_jk.conf-auto
> 
> 3 - In NT task manager, I see only 1 JVM working
> 
> 4 - In jvm.stderr, I see the ContextManager: Adding context 
> for my vhosts
> the    PoolTcpConnector : Starting of  my 
> Ajp12ConnectionHandler for my 4
> ports,
>     but after stopping tomcat, I don't seeany stopping of the 
> 4 ports, and I
> don't see the ContextManager: Removing context of the third 
> vhost (host3).
> 
> 5 - In workers.properties :
>       worker.loadbalancer.type=lb
>       worker.loadbalancer.balanced_workers=ajp12, ajp13
>       The doc says the load balanced workers must NOT appear in the
> worker.list , but they do appear here !
> 
> Any idea ?
> 
> Dominique
> 

Reply via email to