I have tried setting up multiple Tomcat instances standalone, but I have not tried to connect them to Apache,
so I may not be able to help you all the way, but here goes:
 
First, change the port references in the server.xml and workers.properties files, and rename these files to something else.
 
Next, complete the standalone setup changes. (You will want to run standalone at least once, in order to configure mod_jk.conf-auto.)
 
In order to run standalone, you need to change startup.sh and shutdown.sh to point to the new server.xml file version, as follows:
 
     $BASEDIR/tomcat.sh start -security -config ../conf/server_tst.xml "$@"
     and:
    $BASEDIR/tomcat.sh stop -config ../conf/server_tst.xml "$@"
 
Now, run Tomcat standalone to create the mod_jk.conf-auto file.
 
You can then edit the mod_jk.conf-auto file to point to your new workers.properties file.
If you are using AJP13, you will also have to perform additional manual edits in this file, as it is built for AJP12, regardless
of what is in the workers.properties file.
Finally, rename mod_jk.conf-auto and include it in httpd.conf.
=========
Now, repeat for your other Tomcat instances.
 
Let me know if this works for you.
 
Ed
 
-----Original Message-----
From: Debra Mendelson, CCE [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 3:03 AM
To: [EMAIL PROTECTED]
Subject: converting mod_jserv to mod_jk

I am trying to run multiple tomcat 3.2 servet engines behind 1 single Apache 1.3.14 http server.
 
Using mod_jserv I had the following tomcat-apache.conf file:
 
 LoadModule jserv_module libexec/mod_jserv_tomcat.so
      ApJServManual on
      ApJServDefaultProtocol ajpv12
      ApJServSecretKey DISABLED
      ApJServMountCopy on
      ApJServLogLevel notice
      ApJServDefaultHost localhost
      ApJServDefaultPort 8009

      ApJServMount /servlet1 ajpv12://localhost:8009/servlet1
      ApJServMount /servlet2 ajpv12://localhost:8017/servlet2
      ApJServMount /servlet3 ajpv12://localhost:8012/servlet3
      ApJServMount /servlet4 ajpv12://localhost:8013/servlet4
 
In looking at the mod_jk.conf-auto auto file I do not see any directive that specifies a port number.
 
Does anyone have an example that I can try to immitate?
 
Debra Mendelson
[EMAIL PROTECTED]

   

Reply via email to