Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 82433 invoked from network); 16 May 2003 11:35:24 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 16 May 2003 11:35:24 -0000 Received: (qmail 1021 invoked by uid 97); 16 May 2003 11:37:30 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 1014 invoked from network); 16 May 2003 11:37:29 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 16 May 2003 11:37:29 -0000 Received: (qmail 80907 invoked by uid 500); 16 May 2003 11:35:05 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 80805 invoked from network); 16 May 2003 11:35:03 -0000 Received: from eastgate.starhub.net.sg (203.116.1.189) by daedalus.apache.org with SMTP; 16 May 2003 11:35:03 -0000 Received: from cymulacrum.net (mcns220.docsis163.scvmaxonline.com.sg [202.156.163.220]) by eastgate.starhub.net.sg (8.12.5/8.12.5) with ESMTP id h4GBYxR5025168 for ; Fri, 16 May 2003 19:35:00 +0800 (SST) Message-ID: <3EC4CCDE.6030905@cymulacrum.net> Date: Fri, 16 May 2003 19:34:54 +0800 From: Chong Yu Meng User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Apache 2 + Tomcat 4.1.x + mod_jk2 References: <3EC357E4.6060707@cymulacrum.net> <3EC3A997.1000604@cymulacrum.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks, Mark ! I'm actually quite surprised that your jk2.properties file is so short ! And everything is so elegant, like the configuration for mod_jk! Your configuration I understand, unlike the one that came with my rpm file. I kind of guessed that, if I wanted to know what options were available and how to configure them, I would have had to look through the source code. This is not a gripe ! If I had to choose between documenting my code and improving the functionality/stability/speed of my product, I would choose the latter any day. Hey, it's like the saying : those who can't do, teach. I'm just trying to write something that, hopefully, will be of use to someone else. My little contribution to the Tomcat and Linux communities. I will try your suggestion and report back on it ! Thanks and Regards, pascal chong Mark Eggers wrote: >Pascal, > >There are several ways of using mod_jk2 to connect Apache 2.0.x and >Tomcat 4.1.x. > >Probably the simplest way is to use the sockets connection. The >configuration files are very short. > ># ># jk2.properties socket configuration ># >handler.list=request,container,channelSocket > ># ># socket configuration ># >channelSocket.port=8009 >channelSocket.address=127.0.0.1 >channelSocket.maxPort=port+10 > ># ># workers2.properties socket configuration ># > >[shm] >file=C:/Apache2/logs/shm.file >size=1048576 > >[workerEnv:] >info=Global server options >timing=1 >debug=0 > ># Example socket channel, override port and host. >[channel.socket:localhost:8009] >port=8009 >host=127.0.0.1 > ># define the worker >[ajp13:localhost:8009] >channel=channel.socket:localhost:8009 > ># define the worker >[status:status] > ># Uri mapping >[uri:/jkstatus/*] >worker=status:status > ># Uri mapping >[uri:/examples/*.jsp] >worker=ajp13:localhost:8009 > ># [uri:/examples/servlet/*] >worker=ajp13:localhost:8009 > >Please note that with these partial matches, you will have to define >Alias in your httpd.conf to catch any non-jsp and >non-servlet information. > >As John as mentioned, you can do a lot of the workers2.properties file >configuration in httpd.conf. According to the information in the source >code, using JkUriSet is supposed to be more scalable for large sites. >Apache looks up URI info from httpd.conf via a hash mechanism, but >searches linearly through the workers2.properties file. > >Using the JkUriSet directive in httpd.conf, you would delete the two uri >mappings for the examples and add something like the following: > > > Options Indexes FollowSymlinks MultiViews > AllowOverride None > Order allow,deny > Allow from all > JkUriSet worker ajp13:localhost:8009 > > > > Options Indexes FollowSymlinks MultiViews > AllowOverride None > Order allow,deny > Allow from all > JkUriSet worker ajp13:localhost:8009 > > >You would still need an Alias directive to catch html and images from the >examples area. > >The above notes are for running Apache and Tomcat as separate processes, >and starting each program separately. > >I've run both configurations (with and without JkUriSet) on both >Windows/2000 and Redhat Linux 9 with no problems in a development >environment. > >HTH > >/mde/ >just my two cents . . . . > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org