Eugene Only trouble is my mod_jk.conf is being auto generated by Tomcat at startup and I don't know why it is trying to LoadModule jk_module instead of jk2_module. Also, I don't know why it !mod_jk2.c instead of mod_jk2.c. Perhaps I'll not bother wiht the auto generated file and carefully follow your settings.
Thanks for the help. Shaun ----- Original Message ----- From: "Eugene" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 23, 2004 9:52 PM Subject: Re: Mod_jk installation problems > Hello Shaun, you're using syntaxis of mod_jk to load mod_jk2, this > wont work. try this: > ================================httpd.conf==> > LoadModule jk2_module "/usr/local/apache2/modules/mod_jk2.so" > <IfModule mod_jk2.c> > JkSet config.file /usr/local/tomcat/conf/jk/workers2.properties > </IfModule> > ================================httpd.conf==> > > Also you need to configure your workers2.properties: > ================================workers2.properties==> > #xx.xx.xx.xx - IP of your machine > #depends from your vhosts configuration for local development purposes > #you can use 127.0.0.1 > #define the shared memory file > [shm] > file=/usr/local/apache2/logs/jk2.shm > size=1048576 > > [lb:lb] > > [status:] > info=Status worker, displays runtime information. > debug=0 > disabled=0 > > # -- Channels -- # > [channel.socket:xx.xx.xx.xx:8009] > info=Forward to a local TCPIP socket. > port=8009 > host=xx.xx.xx.xx > group=ajp13:xx.xx.xx.xx:8009 > > # -- groups -- # > [ajp13:xx.xx.xx.xx:8009] > info=Ajp13 worker using a local channel. > channel=channel.socket:xx.xx.xx.xx:8009 > > ####################################################### > [uri:xx.xx.xx.xx/*.jsp] > group=ajp13:xx.xx.xx.xx:8009 > [uri:xx.xx.xx.xx/*.jspx] > group=ajp13:xx.xx.xx.xx:8009 > [uri:xx.xx.xx.xx/*.do] > group=ajp13:xx.xx.xx.xx:8009 > [uri:xx.xx.xx.xx/other_folder/*] > group=ajp13:xx.xx.xx.xx:8009 > ================================workers2.properties==> > > To mount your folder with applications in your Virtual Hosts directive use this: > ... > <Location "/*.jsp"> > JkUriSet worker ajp13:xx.xx.xx.xx:8009 > </Location> > <Location "/*.jspx"> > JkUriSet worker ajp13:xx.xx.xx.xx:8009 > </Location> > <Location "/*.do"> > JkUriSet worker ajp13:xx.xx.xx.xx:8009 > </Location> > <Location "/other_folder/*"> > JkUriSet worker ajp13:xx.xx.xx.xx:8009 > </Location> > ... > > At last configure simple 'jk2.properties' file: > > handler.list=request,container > channelSocket.port=8009 > shm.file=/usr/local/apache2/logs/jk2.shm > > Hope this helps. > > > > > Thursday, September 23, 2004, 8:43:19 AM, you wrote: > > > I'm struggling to install mod_jk on Tomcat 4.1. > > > I've updated my server.xml file with > > > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > > modJk="/usr/local/apache2/modules/mod_jk2.so" > > workersConfig="/usr/local/tomcat/conf/jk/workers.properties" > > jkLog="/usr/local/tomcat/logs/mod_jk.log" > > jkDebug="info" > > append="false"/> > > > and > > > <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> > > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" > > port="8009" minProcessors="5" maxProcessors="75" > > acceptCount="10" debug="0" connectionTimeout="0" > > > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > > > In my mod_jk.conf I get: > > > <IfModule !mod_jk.c> > > LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so > > </IfModule> > > > JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties" > > JkLogFile "/usr/local/tomcat/logs/mod_jk.log" > > > JkLogLevel info > > > When I include this in my httpd.conf and start Apache I get an error: > > > Can't locate API module structure 'jk_module' in > > /usr/local/apache2/modules/mod_jk2.so. > > > If I change the module to jk2_module it then complains that: > > > Invalid command 'JkWorkersFile' ...... > > > Anybody got any ideas what I have done wrong? > > > Shaun > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > Best regards, > Eugene mailto:[EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]