tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Choe <choep...@mindspring.com>
Subject Re: defining multiple tomcat server on one workers2.properties file
Date Tue, 30 Dec 2003 19:44:50 GMT
i've tried to define a separate channel socket for the second tomcat 
instance, but now when i try to access the directory specified with the 
uri, the web page will only come up if i fully type the file name (i.e. 
test.foo.bar.com/spa/index.jsp).  i have the tomcat server set to use 
index.jsp as the welcome file.

here is the workers2.properties i am using:

[logger]
level=ERROR

[config:]
file=${serverRoot}/apache/conf/workers2.properties
debug=0
debugEnv=0

[shm:]
info=Scoreboard. Required fro reconfiguration and status with 
mulitprocess servers
file=/var/log/jk2.shm
size=1000000
debug=0
disabled=0

[lb:lb]

[channel.socket:10.1.2.66:8009]
port=8009
host=10.1.2.66

[channel.socket:10.1.2.102:8009]
port=8009
host=10.1.2.102

[ajp13:10.1.2.66:8009]
channel=channel.socket:10.1.2.66:8009
group=lb

[ajp13:10.1.2.102:8009]
channel=channel.socket:10.1.2.102:8009
group=lb

[uri:/examples/*.jsp]
worker=ajp13:10.1.2.66:8009
group=lb

[uri:/asset/*]
worker=ajp13:10.1.2.66:8009
group=lb

[uri:/spa/*]
worker=ajp13:10.1.2.102:8009
group=lb


if i only have one channel socket and worker defined, it works fine.  is 
this a bug in mod_jk2 or am i missing a configuration property some where.

this is with tomcat 4.1.29 with apache 2.

Peter

Asif Chowdhary wrote:
> In the workers2.properties file specify the second instance of your tomcat
> and the port number.
> 
> For example
> 
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
> 
> [channel.socket:localhost:8010]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8010
> 
> In the first tomcat server.xml this will be jvmRoute="localhost:8009"
> in the engine directive.
> 
> In the server.xml in the specify JVM attribute to jvmRoute="localhost:8010" in the Engine
directive.
> in the connector directive and change the port number to 8010
> 
> 
> -----Original Message-----
> From: Peter Choe [mailto:choepete@mindspring.com]
> Sent: Wednesday, December 17, 2003 3:30 PM
> To: Tomcat Users List
> Subject: defining multiple tomcat server on one workers2.properties file
> 
> 
> i have an apache webserver that will handle request made to tomcat and 
> hand off the request using jk2.  i have the workers2.properties to 
> handle this with one tomcat server.  however, i have another tomcat 
> server that i need the request to be sent to.  i have done this with jk 
> by defining a separate worker and specifying the other server.
> 
> how is this done with jk2?  does anyone have an example i can use?
> 
> Peter Choe
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



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


Mime
View raw message