I got it to work on my own, but I still have 1 major question.
This is what I did:

I made 1 unified workers.properties file which contains:

workers.tomcat_home=/export/home/prod/tomcat3.2.4
workers.java_home=/export/home/prod/jdk-1.3.1
ps=/

worker.list=ajp12prod, ajp12beta

worker.ajp12prod.port=8007
worker.ajp12prod.host=localhost
worker.ajp12prod.type=ajp12
worker.ajp12prod.lbfactor=1

worker.ajp12beta.port=8008
worker.ajp12beta.host=localhost
worker.ajp12beta.type=ajp12
worker.ajp12beta.lbfactor=1

In httpd.conf I added:

LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info

<VirtualHost 64.50.103.219:80>
    ...
    JkMount /*.jsp ajp12prod
</VirtualHost>

<VirtualHost 64.50.103.220:80>
    ...
    JkMount /*.jsp ajp12beta
</VirtualHost>


My question is this:
It seems like it is only possible to have one workers.tomcat_home
and one workers.java_home.  However I have 2 tomcat installs so
I really have 2 tomcat homes (and 2 java homes also).  It seems to
be working OK with just 1 but I haven't tested much.  How are these
variables used and what is the consequences?
Thanks,
Dan

----- Original Message ----- 
> I am using Apache 1.3.28, mod_jk, Tomcat 3.2.4.
> I have Apache running with 2 virtual hosts (www1, www2).
> I want them to connect to different instances of tomcat.
> I have 2 completely different tomcat installs, one for www1
> and one for www2.
>
> This does not work because both virtual hosts connect
> to the same tomcat:
> Include /home/prod/tomcat3.2.4/conf/mod_jk.conf-auto
>
> This does not work either
> Include /home/prod/tomcat3.2.4/conf/mod_jk.conf-auto
> Include /home/beta/tomcat3.2.4/conf/mod_jk.conf-auto
>
> I tried removing the Include mod_jk.conf-auto lines above
> and doing a simple configuration inside the virtual host
> like this:
>
> <VirtualHost 64.50.103.219:80>
>     DocumentRoot /home/prod/htdocs
>     ServerName www1.nuserve.com
>     <Directory "/home/prod/htdocs">
>         Options MultiViews FollowSymLinks
>         AllowOverride None
>         Order allow,deny
>         Allow from all
>         DirectoryIndex index.html
>     </Directory>
>     ErrorLog logs/www1.nuserve.com-error_log
>     CustomLog logs/www1.nuserve.com-access_log common
>     JkWorkersFile /home/prod/tomcat3.2.4/conf/workers.properties
>     JkLogFile /home/prod/tomcat3.2.4/logs/mod_jk.log
>     JkLogLevel info
>     JkMount /*.jsp ajp12
>     JkMount /servlet/* ajp12
> </VirtualHost>
>
> <VirtualHost 64.50.103.220:80>
>     DocumentRoot /home/beta/htdocs
>     ServerName www1.nuserve.com
>     <Directory "/home/beta/htdocs">
>         Options MultiViews FollowSymLinks
>         AllowOverride None
>         Order allow,deny
>         Allow from all
>         DirectoryIndex index.html
>     </Directory>
>     ErrorLog logs/www1.nuserve.com-error_log
>     CustomLog logs/www1.nuserve.com-access_log common
>     JkWorkersFile /home/beta/tomcat3.2.4/conf/workers.properties
>     JkLogFile /home/beta/tomcat3.2.4/logs/mod_jk.log
>     JkLogLevel info
>     JkMount /*.jsp ajp12
>     JkMount /servlet/* ajp12
> </VirtualHost>
>
> This does not work because I get this error in
>
> [Mon Aug 18 16:06:16 2003] [error] (2)No such file or directory: Error
while
> opening the workers, jk will not work
>
> [Mon Aug 18 16:06:16 2003] [error] (2)No such file or directory: Error
while
> opening the workers, jk will not work
>
> I have universal read permissions on the workers.properties
> file and all the parent directories, so that is not the problem.
> Can anyone help.  Many thanks,
> Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to