The workers.properties file should be on the Apache machine. The
problem you're running into is that the documentation usually assumes
Tomcat and Apache are on the same machine, and it's leading you
to believe that workers.properties has something to do with Tomcat.
workers.properties is only relevant to mod_jk running on Apache, not
to Tomcat. If you need the example file provided with Tomcat, just copy
it over to the Apache machine from a distribution of Tomcat and point
JkWorkersFile to the right place on the local file system.
And yes, it does work. I've run several development and production
systems this way.
Best Regards,
Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com
On Wed, 6 Jun 2001 11:23:07 -0400, Chauhan, Anand wrote:
>The idea seems great. But how would you access the worker.properties file on the
>remote machine. Or is it that, as suggested, you would be "creating" a
>worker.properties file in the conf/worker.properties
>
>Did the idea work for you ? Let me know. Thanks.
>
>-Andy
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, June 06, 2001 10:10 AM
>To: Jason Koeninger
>Cc: [EMAIL PROTECTED]
>Subject: Re: Apache and Tomcat on different boxes
>
>
>Thks for replying,
>
> So if i understand you correctly, i have to create
>a "workers.properties" file in my apache conf dir and have mod_jk look for it
>there?
>
>eg.
>httpd.conf contains
>
>LoadModule jk_module libexec/mod_jk.so
>AddModule mod_jk.c
>
>JkMount /someurl remotetomcat
>
>and
>
>workers.properties file in apache/conf contains:
>
>worker.remotetomcat.type=ajp13
>worker.remotetomcat.port=8009
>worker.remotetomcat.host=www.x.com
>worker.remotetomcat.cachesize=30
>
> Is that all i have to do?
>
>Thks a Million,
>Paul
>
>
>
>Quoting Jason Koeninger <[EMAIL PROTECTED]>:
>
>> The ip address or hostname of the Tomcat machine is stored
>> in the workers.properties file referenced by your mod_jk setup.
>> I've also seen some sort of url version of the JkMount command,
>> but I've never used it myself and don't know if it works or what
>> versions it works on.
>>
>> Best Regards,
>>
>> Jason Koeninger
>> J&J Computer Consulting
>> http://www.jjcc.com
>>
>> On Wed, 6 Jun 2001 18:29:49 +0800, Paul Tan wrote:
>>
>> >Hi all,
>> >
>> > I tried searching to mailing list b4 posting here. Anyway,
>> what must i put into apache's "http.conf" for
>> mod_jk.so to enable a connection to a separate machine containing tomcat
>> 3.2.2?
>> >
>> > Placing both the Web Server and App server into 1
>> machine is rather well documented. But I can't seem
>> to find any for separate machines.
>> >Can someone show me where to fish? or would someone gimme a fish?
>> >
>> >Thks,
>> >Paul
>> >
>>
>>
>>