From owner-freebsd-java@FreeBSD.ORG Sun Feb 8 01:39:35 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2D16106564A for ; Sun, 8 Feb 2009 01:39:35 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4913F8FC12 for ; Sun, 8 Feb 2009 01:39:35 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n181dOo1043568; Sun, 8 Feb 2009 01:39:30 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.1 smtp.infracaninophile.co.uk n181dOo1043568 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1234057170; bh=QNN+E34Cx08nJU8ogPP3aA3NjEI7BvRaYKNJXCZ4rPE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<498E37C5.8090208@infracaninophile.co.uk>|Date:=20S un,=2008=20Feb=202009=2001:39:17=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.19=20(X11/20090125)|MIME-Vers ion:=201.0|To:=20Chuck=20Robey=20|CC:=20freebs d-java@freebsd.org|Subject:=20Re:=20tomcat=20again|References:=20< 498E0FA7.1020102@telenix.org>|In-Reply-To:=20<498E0FA7.1020102@tel enix.org>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/s igned=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/ pgp-signature"=3B=0D=0A=20boundary=3D"------------enig277750433117 866B80EAB45F"; b=u+M4JXOrs++WvPQg1Usvb76PqMqH7qZdf1d+7LcFLWvrL4p3K1C5A8SovKnL7F99p aKpoOVuOLN+Pz5DW6DHqCVsx9VY/rQ9a90shGpEdO0sYKzNAT65sOrtPfqx2pOzQB1 6cw/FeWNOXb6KRWX4K6KAdorLFvEOdQG8SpBZokQ= Message-ID: <498E37C5.8090208@infracaninophile.co.uk> Date: Sun, 08 Feb 2009 01:39:17 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.19 (X11/20090125) MIME-Version: 1.0 To: Chuck Robey References: <498E0FA7.1020102@telenix.org> In-Reply-To: <498E0FA7.1020102@telenix.org> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig277750433117866B80EAB45F" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 08 Feb 2009 01:39:30 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94.2/8963/Sat Feb 7 05:53:02 2009 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-java@freebsd.org Subject: Re: tomcat again X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2009 01:39:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig277750433117866B80EAB45F Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Chuck Robey wrote: > I really don't know if this should go to FreeBSD-Java or FreeBSD-ports,= I chose > ports, I hope this is right. >=20 > I'm trying to get the port of tomcat6 to proxy a webpage through the re= cently > installed Apache22 port. Both Apache22 and Tomcat6 seem to work fine w= hen > directly queried (port 8008 for Tomcat). From what I've read, I need a= mod > loaded, according to this line added to my httpd.conf: >=20 > LoadModule webapp_module libexec/apache22/mod_webapp.so >=20 Why wouldn't you use either mod_jk or mod_proxy_ajp here? Of course, you need tomcat to have an AJP13 listener set up (usually port 8009 -- example config is in the standard server.xml but commented out I think) AJP13 is just a condensed version of HTTP with most of the standard text strings replaced by binary codes, and it uses persistent apache <-> tomcat connections rather than tearing them down after each session, so it's a bit more efficient. mod_jk is more developed and more widely used but it's yet another packag= e to install. mod_proxy_ajp comes as standard with apache22 -- it's a refactoring of the mod_jk code to take all the load-balancy stuff out int= o a separate mod_proxy module and then add back in the AJP13-ness separatel= y. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig277750433117866B80EAB45F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkmON8wACgkQ8Mjk52CukIzSxwCghl+szf/oveXhBlsVmK7CXZH3 A20AmwW74ICDjq36TA0PjHkZQAJswYpl =c/jR -----END PGP SIGNATURE----- --------------enig277750433117866B80EAB45F--