You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Richard E. Tatum Jr." <cm...@bellsouth.net> on 2003/05/19 01:46:57 UTC

uriworkermap ----- question for the advanced Tomcater!

Is there a way to specify the host in the uriworkermap?
I have setup multiple websites under IIS in which I want each to route to a separate instance of Tomcat.
I have the separate instances set up and working. The only problem that I have is in order to be able to direct the sites to the proper instance I have to deploy my sites using a unique sub directory instead of from the main directory.
Example :
/subdirectory/servlet/*=worker2
/subdirectory/*.jsp=worker2

If I deploy from main directory and use
/servlet/*=worker3
/*.jsp=workert3

All will be directed to worker3

It would be nice to be able to use
sitename/servlet/*=worker3
sitename/*.jsp=worker3

If anyone knows how to do this I would greatly appreciate any suggestions.
Thank You
Richard


RE: uriworkermap ----- question for the advanced Tomcater!

Posted by Rueedi Christian <c....@bluemail.ch>.
Hi,

try this:

worker2.properties:

[channel.socket:Worker_GG]
host=192.168.7.10
port=10009
tomcatId=tomcat_GG (server.xml: jvmroute must be tomcat_GG)

[ajp13:Worker_GG]
channel=channel.socket:Worker_GG
tomcatId=tomcat_GG

[channel.socket:Worker_HH]
host=192.168.7.10
port=11009
tomcatId=tomcat_HH

[ajp13:Worker_HH]
channel=channel.socket:Worker_HH
tomcatId=tomcat_HH (server.xml: jvmroute must be tomcat_HH)



httpd.conf:

<Location "/site1/*.jsp">
  JkUriSet worker ajp13:Worker_GG
</Location>

<Location "/site1/servlet/*">
  JkUriSet worker ajp13:Worker_GG
</Location>

<Location "/site2/*.jsp">
  JkUriSet worker ajp13:Worker_HH
</Location>

<Location "/site2/servlet/*">
  JkUriSet worker ajp13:Worker_HH
</Location>





>-- Original-Nachricht --
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>From: "Richard  E. Tatum  Jr." <cm...@bellsouth.net>
>To: <to...@jakarta.apache.org>
>Subject: uriworkermap ----- question for the advanced Tomcater!
>Date: Sun, 18 May 2003 19:46:57 -0400
>
>
>Is there a way to specify the host in the uriworkermap?
>I have setup multiple websites under IIS in which I want each to route to
>a separate instance of Tomcat.
>I have the separate instances set up and working. The only problem that
I
>have is in order to be able to direct the sites to the proper instance I
>have to deploy my sites using a unique sub directory instead of from the
>main directory.
>Example :
>/subdirectory/servlet/*=worker2
>/subdirectory/*.jsp=worker2
>
>If I deploy from main directory and use
>/servlet/*=worker3
>/*.jsp=workert3
>
>All will be directed to worker3
>
>It would be nice to be able to use
>sitename/servlet/*=worker3
>sitename/*.jsp=worker3
>
>If anyone knows how to do this I would greatly appreciate any suggestions.
>Thank You
>Richard
>


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