mod_jk - apache tomcat problem
Net Llama!
netllama
Mon May 17 12:01:53 PDT 2004
Hi Pascal,
Thanks for the pointer. I fixed httpd.conf so that only the Load_Module
directive for mod_jk2, and now apache is firing up ok. Looks like my
problem now is that i've got workers.properties syntax rather than
workers2.properties. I just can't figure out how to convert to the new
version. Here's what I have:
worker.list= worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=100
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
type, host and port i'm able to convert, but the cache and socket
entries don't seem to convert over. Any suggestions?
thanks!
Lonni
On 05/03/04 20:19, Chong Yu Meng wrote:
> Hi Lonni !
>
> Nope, you can't use mod_jk syntax for mod_jk2. Although jk2 just sounds
> like the "second version" of jk, it is fundamentally different. I have a
> write-up on this on my website :
> http://cymulacrum.net/writings/tomcat5/book1.html
>
> This is for Fedora Core 1: there are some problems with RHEL, from what
> I hear on the Tomcat mailing list. You can try my instructions first,
> and if there are problems, you can post it up. I've helped some people
> with their individual setups, and I found that it actually can vary
> quite a lot from Linux distribution to Linux distribution.
>
> I know, I know, I should put it up on the Linux StepByStep, but the
> article is now going through another major re-write, because I'm now
> getting a lot of feedback from people in the US and Germany.
>
> Regards,
> pascal chong
>
>
> Net Llama! wrote:
>
>> I've got a RHES-3.0 box with apache2 and tomcat installed. I'm trying
>> to get mod_jk2 working, but i can't quite figure out the neccesary
>> syntax to set it all up.
>>
>> What i'm hung up on is what i need to throw into httpd.conf to get
>> basic functionality. right now when i try to start apache i get the
>> error:
>>
>> Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
>> module not included in the server configuration
>>
>> All that i've added to httpd.conf is:
>>
>> LoadModule jk2_module modules/mod_jk2.so
>>
>> <IfModule mod_jk2.c>
>> JkWorkersFile /etc/httpd/conf/workers.properties
>> JkLogFile /var/log/httpd/mod_jk.log
>> JkLogLevel info
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>> JkRequestLogFormat "%w %V %T"
>> JkMount /sf-soap/* worker1
>> JkMount /sf-soap worker1
>> </IfModule>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: http://netllama.ipfox.com
20:35:01 up 149 days, 7 min, 1 user, load average: 0.30, 0.20, 0.12
More information about the Linux-users
mailing list