You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Nguyen <qu...@comcast.net> on 2003/12/10 09:03:39 UTC
Integrating Apache + Tomcat 5 + jk2
Hi, I am trying to integrating Apache + Tomcat5+ jk2 on Solaris 9. Does
anyone have an example of jk2.properties and workers2.properties file for
this configuration? I appreciate it. Thanks.
Mike
Re: Integrating Apache + Tomcat 5 + jk2
Posted by Martin Kuba <ma...@ics.muni.cz>.
Mike Nguyen wrote:
> Hi, I am trying to integrating Apache + Tomcat5+ jk2 on Solaris 9. Does
> anyone have an example of jk2.properties and workers2.properties file
> for this configuration? I appreciate it. Thanks.
> Mike
This information is not sufficient, as you can connect mod_jk2
and Tomact in several ways: TCP sockets, unix sockets and JNI.
A basic guide is available in JK documentation:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html
I am using TCP sockets (easiest option).
I have following in httpd.conf:
LoadModule jk2_module libexec/mod_jk2.so
<IfModule mod_jk2.c>
JkSet config:file /etc/httpd/workers2.properties
</IfModule>
and following in workers2.properties:
[logger.file:]
level=DEBUG
file=/var/log/httpd/mod_jk2.log
[shm:]
file=/var/log/httpd/jk2.shm
size=1000000
[channel.socket:localhost:8009]
[uri:/mywebapp/*]
info=maps mywebapp to default channel
I hope this helps ...
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno Martin Kuba
Institute of Computer Science email: makub@ics.muni.cz
Masaryk University http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
--------------------------------------------------------------