Date: Sun, 08 Feb 2009 01:39:17 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Chuck Robey <chuckr@telenix.org> Cc: freebsd-java@freebsd.org Subject: Re: tomcat again Message-ID: <498E37C5.8090208@infracaninophile.co.uk> In-Reply-To: <498E0FA7.1020102@telenix.org> References: <498E0FA7.1020102@telenix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
>
> I'm trying to get the port of tomcat6 to proxy a webpage through the recently
> installed Apache22 port. Both Apache22 and Tomcat6 seem to work fine when
> 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:
>
> LoadModule webapp_module libexec/apache22/mod_webapp.so
>
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 package
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 into
a separate mod_proxy module and then add back in the AJP13-ness separately.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?498E37C5.8090208>
