I use JK, not JK2, but as far as I know, everything with JK2 is done in workers2.properties and jk2.properties. The Apache side is done in workers2.properties.
The specific JK2 commands are abstracted out of httpd.conf, unlike JK, and put into workers2.properties. AFAIK, just put workers2.properties in the default location (APACHE_HOME/conf) and go from there. In my opinion, the existing docs should be enough to at least get started. Here's an example worker2.properties file, in entirety, taken from http://www.pubbitch.org/jboss/mod_jk2.html which has been posted several times in the list of "Here are good HOWTO documents for JK/JK2": #---- workers2.properties # Shared memory handling. Needs to be set. [shm] file=/usr/local/apache2/logs/shm.file size=1048576 # Example socket channel, explicitly set port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # Example UNIX domain socket [channel.un:/usr/local/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:localhost:8009] channel=channel.un:/usr/local/tomcat/work/jk2.socket # To use the TCP/IP socket instead, just comment out the above # line, and uncomment the one below #channel=channel.socket:localhost:8009 # Announce a "status" worker [status:status] # Uri mapping [uri:/examples/*] #worker=ajp13:localhost:8009 worker=ajp13:/usr/local/tomcat/work/jk2.socket [uri:/status/*] worker=status:status #---- end of workers2.properties John > -----Original Message----- > From: Gary Roediger [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 3:35 PM > To: 'Tomcat Users List' > Subject: RE: JK2 Installation > > > EXACTLY all that is needed is some examples ( not just snippets ). I > have spent a lot of time looking through the docs on line, from the > release and pouring over the hundreds of email on this list - > I still do > not see where the connection between Apache 2.0 httpd.conf and the > worker2.properties file is made. I did stumble over a reference to > JkSet config.file location-of-workers2.properties-file > For example: > JkSet config.file /usr/local/tomcat/conf/workers2.properties > > There were a number of commands supported by mod_jk that were > placed in > the apache httpd.conf file. Example JkMount, JkWorkerFile, ... what > are the mod_jk2 commands??? Where are they documented??? > > In Mod_jk the way you connected a path in a URL to a worker > was through > a JkMount configuration statement in httpd.conf. How do you do the > equivalent with mod_jk2??? > Thank you, > > Gary > > >>> -----Original Message----- > >>> From: Turner, John [mailto:[EMAIL PROTECTED]] > >>> Sent: Monday, October 07, 2002 9:43 AM > >>> To: 'Tomcat Users List' > >>> Subject: RE: JK2 Installation > >>> > >>> > >>> What EXACTLY is incomplete about it? Someone can > probably help you > if > >>> you > >>> can describe exactly what additional information you need. > >>> > >>> John > >>> > >>> > >>> > -----Original Message----- > >>> > From: Christian Gothe [mailto:[EMAIL PROTECTED]] > >>> > Sent: Monday, October 07, 2002 9:46 AM > >>> > To: [EMAIL PROTECTED] > >>> > Subject: JK2 Installation > >>> > > >>> > > >>> > Hi! > >>> > > >>> > I'm looking for informations how to install JK2 for Apache. On > >>> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config > >>> > web.html > >>> > is nothing that can help me, because it is incomplete. > >>> > > >>> > Any ideas? > >>> > > >>> > Thank you, > >>> > Christian > >>> > > >>> > > >>> > > >>> > -- > >>> > To unsubscribe, e-mail: > >>> > <mailto:[EMAIL PROTECTED]> > >>> > For additional commands, e-mail: > >>> > <mailto:[EMAIL PROTECTED]> > >>> > > >>> > >>> -- > >>> To unsubscribe, e-mail: <mailto:tomcat-user- > >>> [EMAIL PROTECTED]> > >>> For additional commands, e-mail: <mailto:tomcat-user- > >>> [EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
