You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dominique BATARD <db...@sf2r.fr> on 2000/11/07 14:17:13 UTC
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