From owner-freebsd-questions@FreeBSD.ORG Tue Feb 19 16:20:49 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCB4E16A417 for ; Tue, 19 Feb 2008 16:20:49 +0000 (UTC) (envelope-from tequnix@frogmi.net) Received: from mail.callooh.com (chello062178170039.13.14.vie.surfer.at [62.178.170.39]) by mx1.freebsd.org (Postfix) with ESMTP id 4266E13C457 for ; Tue, 19 Feb 2008 16:20:49 +0000 (UTC) (envelope-from tequnix@frogmi.net) Received: from jadzia.intern.creative.co.at (fw2.creative.co.at [193.81.98.66]) (authenticated bits=0) by mail.callooh.com (8.14.2/8.14.2) with ESMTP id m1JFgDJZ003134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 19 Feb 2008 16:42:14 +0100 (CET) (envelope-from tequnix@frogmi.net) X-Authentication-Warning: lyekka.home.callooh.com: Host fw2.creative.co.at [193.81.98.66] claimed to be jadzia.intern.creative.co.at Date: Tue, 19 Feb 2008 16:42:12 +0100 From: tequnix@frogmi.net To: freebsd-questions@freebsd.org Message-ID: <20080219164212.3e6e6fdf@jadzia.intern.creative.co.at> In-Reply-To: <1203395615.6470.45.camel@laptop2.herveybayaustralia.com.au> References: <1203382458.6470.32.camel@laptop2.herveybayaustralia.com.au> <1203383232.5883.2.camel@pclmills> <1203386041.6470.36.camel@laptop2.herveybayaustralia.com.au> <1203388082.5883.6.camel@pclmills> <1203395615.6470.45.camel@laptop2.herveybayaustralia.com.au> X-Mailer: Claws Mail 3.3.0 (GTK+ 2.12.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92/5886/Tue Feb 19 09:09:14 2008 on lyekka.home.callooh.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.callooh.com [62.178.170.39]); Tue, 19 Feb 2008 16:42:14 +0100 (CET) Subject: Re: Configuring mod_jk for Apache and Tomcat X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 16:20:49 -0000 Am Tue, 19 Feb 2008 14:33:35 +1000 schrieb Da Rock : > OK. Tomcat is working- I managed to find out how to get direct access to > it (had to uncomment a line in server.xml, web.xml). Still no Apache / > Tomcat connector though. If I navigate to /webapps it says 404 - > although this says the error comes from Apache Tomcat6. Is it the > connector config I need to play with or the Tomcat? In either case, what > do I need to change? > > I found through a search that older versions of Tomcat need to have a > listener line in the server.xml. Is this true for Tomcat6? There are two separate things to do: * configure the connector in tomcats server.xml * make apache aware of tomcats contexts (how this needs to be done depends on which connector you use) here is the relevant snippet from my server.xml (works with tomcat6 and tomcat5.*): [..] somename [..] for the httpd.conf and with mod_jk you need something like that: [..] JkMount /a_wepapp/* ajp13 [..] (if you have mappings in your web.xml. if you want to use the "invoker" servlet and skip mappings in your web.xml, you may remove the comments around that part in the tomcat/config/web.xml and use JkMount /a_wepapp/servlet/* ajp13 instead) some time ago i switched from mod_jk to apaches proxy_ajp modul (as i find it easier to maintain), the part for the httpd.conf would look like: [..] LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so ProxyPass /a_wepapp ajp://127.0.0.1:8009/a_wepapp [..] HTH, reinhard