You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2008/05/22 20:33:14 UTC

Re: mod jk and workers file

-----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