You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mehrotra, Anurag" <AM...@intellisales.com> on 2008/05/22 16:55:56 UTC

mod jk and workers file

I am using apache 2.0.59 to connect to Tomcat 6.0.16 using mod_jk 1.2.26.
Current configuration is working just fine. I have specified my
worker.properties file location under httpd.conf (apache web server) as
follows:

JkWorkersFile "D:\Apache Software Foundation\Tomcat
6.0\conf\jk\workers.properties"


I now have to connect the same instance of web server (as above) to another
instance of Tomcat running on a different ip address and port numbers.

How can I go about specifying multiple Workers file? 

Or 

Can I use the same workers file and define new worker definition

worker.wk2.port=new port number
worker.wk2.host=new ip address
worker.wk2.type=ajp13

Thanks,

________________________________
Anurag			301-296-3838

The information contained in this message may be privileged and confidential
and protected from disclosure.  If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message and deleting it from your
computer.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod jk and workers file

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anurag,

Mehrotra, Anurag wrote:
| I now have to connect the same instance of web server (as above) to
another
| instance of Tomcat running on a different ip address and port numbers.
|
| How can I go about specifying multiple Workers file?

You don't want to do this.

| Can I use the same workers file and define new worker definition
|
| worker.wk2.port=new port number
| worker.wk2.host=new ip address
| worker.wk2.type=ajp13

This is the way to do it. Just copy your existing worker configuration
(the worker.[name].whatever lines) and paste them below the originals.
Just change the worker name and whatever other settings you need (such
as port number).

Finally, adjust the "worker.list" property to include both workers, like
this:

worker.list=wk1, wk2

That should be all you need. Make sure you reload httpd's configuration
after you change your workers file.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg1vGoACgkQ9CaO5/Lv0PBUYQCffxjJKoZR9G8+cOqZXtC++Hlu
VpgAoKFCuMV5glCTL+lJ5wQh56yxy6pb
=Z6f1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org