Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 18:54:25 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Louis LeBlanc <leblanc+freebsd@keyslapper.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Apache 2.0 and Tomcat 4.1 - looking for a more relevant mailing list
Message-ID:  <20030421065425.GA4464@grimoire.chen.org.nz>
In-Reply-To: <20030420230121.GN59280@keyslapper.org>
References:  <20030420230121.GN59280@keyslapper.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 20, 2003 at 07:01:21PM -0400, Louis LeBlanc wrote:

[...]
> If there is no list, any other suggestions on current, clear, and
> complete information about setting up Apache 2.0 and Tomcat 4.1 to
> handle JSP pages would be greatly appreciated.

If you're talking about accessing your webapp in Tomcat via Apache
webport. You need to:

    1. Install www/mod_webapp-apache2.
    2. Tweak Tomcat's server.xml file and uncomment the "Apache-Connector"
       service. Replace the name="..." with the ServerName off your
       apache config.
    3. Tweak Apache's httpd.conf, and add:

            LoadModule webapp_module libexec/apache2/mod_webapp.so
            WebAppConnection warpConnection warp localhost:8008

If you have a VirtualHost entry, you can do something like:

    <VirtualHost *>
        ServerName virtual.mydomain.org:80
        DocumentRoot /webroot/virtual

        WebAppDeploy mywebapp warpConnection /tomcat/

    </VirtualHost>

The port-specifier is important. The webapp "mywebapp" will run
when you access:

    http://virtual.mydomain.org/tomcat/

Hope this helps.
-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                                Don't worry about avoiding temptation,
                            as you grow older, it starts avoiding you.



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