Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2007 09:05:16 -0800
From:      "pete wright" <nomadlogic@gmail.com>
To:        "Lucas Neves Martins" <snowniak@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Firewall Redirect
Message-ID:  <57d710000711300905s71a6c638mad7546ff3416e932@mail.gmail.com>
In-Reply-To: <49eaeb190711300559u34557d6bha38a72d84a65caca@mail.gmail.com>
References:  <49eaeb190711300559u34557d6bha38a72d84a65caca@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 30, 2007 5:59 AM, Lucas Neves Martins <snowniak@gmail.com> wrote:
> Hello guys,
>
> I=B4m having the following problem:
>
> Redirect requests from the port 80, to the port 8082. - for apache tomcat=
.
>
> I=B4m new on freeBSD, Of course, I had looked out on google, and read the
> firewall section on the Handbook.
>
snipping some ipfw rules...

>
> PS: I=B4m trying to do this, to make the user "tomcat" run the apache-tom=
cat,
> opening the port 8082, and make it
>
> transparent to users who access the domain by the common port 80.
>

another method to achieve this that may be interesting for you is to
use mod_jk to redirect requests coming in on your priv'd port 80
apache daemon to your tomcat processes on an unpriv'd port:

http://tomcat.apache.org/connectors-doc/

I won't go into the whole configuration here - but going this route
may give you more flexibility than using a packetfilter ruleset and
will allow you take advantage of load balancing etc. with mod_jk as
well.  i currently use this setup for a site that serves both static
content from httpd and .jsp pages from tomcat all on the same box.

HTH
-pete

--=20
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57d710000711300905s71a6c638mad7546ff3416e932>