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, j\
k will not work

[Mon Aug 18 16:06:16 2003] [error] (2)No such file or directory: Error while
opening the workers, j\
k 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