From owner-freebsd-questions@FreeBSD.ORG Thu Oct 14 18:59:36 2010 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 362A8106564A for ; Thu, 14 Oct 2010 18:59:36 +0000 (UTC) (envelope-from timothyk@wallnet.com) Received: from mail-gw5.njit.edu (mail-gw5.njit.edu [128.235.251.152]) by mx1.freebsd.org (Postfix) with ESMTP id DD5428FC08 for ; Thu, 14 Oct 2010 18:59:35 +0000 (UTC) Received: from beta.maestro (dhcp114-27.njit.edu [128.235.114.27]) by mail-gw5.njit.edu (8.13.8/8.13.8) with ESMTP id o9EHWeYP012077; Thu, 14 Oct 2010 13:33:05 -0400 (EDT) Message-ID: <4CB73E24.3010108@wallnet.com> Date: Thu, 14 Oct 2010 13:30:12 -0400 From: Tim Kellers User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100917 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-questions References: <4CB7393B.7000302@wallnet.com> In-Reply-To: <4CB7393B.7000302@wallnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Christer Solskogen , Tim Kellers , Andy Wodfer Subject: Re: Resin 3.1.9, Apache 2.2.16 and mod_caucho? 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: Thu, 14 Oct 2010 18:59:36 -0000 On 10/14/10 13:09, Tim Kellers wrote: > On 10/14/10 12:11, Christer Solskogen wrote: >> On Thu, Oct 14, 2010 at 3:07 PM, Andy Wodfer wrote: >>> On Thu, Oct 14, 2010 at 1:06 PM, Christer Solskogen< >>> christer.solskogen@gmail.com> wrote: >>> >>>> On Thu, Oct 14, 2010 at 10:16 AM, Andy Wodfer >>>> wrote: >>>>> Hi, >>>>> I'm trying to install Resin together with Apache and according to all >>>>> documentation I can find I'm supposed to compile the mod_caucho and >>>> include >>>>> this in the Apache httpd.conf, but I can't find any reference to >>>> mod_caucho >>>>> in my ports, system or compile options. >>>>> >>>>> Is the documentation outdated or can anyone give me some pointers >>>>> as to >>>> how >>>>> I can make requests to Java sites go through Apache (using virtual >>>> hosts)? >>>>> Ie. http://caucho.com/resin-3.1/doc/install-apache.xtp >>>>> >>>>> Both Apache (port 80) and Resin3.1 (port 8080) runs fine alone. >>>>> >>>> You probably have that module already installed. It comes with >>>> www/resin3 according to the Makefile. >>>> >>> Don't think so. locate (updated) and find only shows these: >>> >>> ./tmp/caucho >>> ./usr/local/resin3/webapps/resin-doc/WEB-INF/classes/com/caucho >>> ./usr/local/resin3/webapps/resin-doc/WEB-INF/xsl/caucho >>> ./usr/local/resin3/webapps/resin-doc/examples/amber-basic/WEB-INF/classes/com/caucho >>> >>> >> You might need to have apache[2|22] installed first. >> >> > After I built and installed Resin (with make WITH_APACHE2="YES" > install) and followed the config instructions in the pkg_messages), I > cd'd to: > /usr/ports/www/resin3/work/resin-3.1.9/modules/c/src/apache2/.libs and > copied mod_caucho.so to /usr/local/libexec/apache22 > > I restarted apache and have this output from nmap -A localhost:80 > > /tcp open http Apache httpd 2.2.16 ((FreeBSD) mod_ssl/2.2.16 > OpenSSL/0.9.8n DAV/2 PHP/5.2.14 with Suhosin-Patch Resin/3.1.9) > |_http-methods: No Allow or Public header in OPTIONS response (status > code 503) > |_html-title: 503 Service Temporarily Unavailable > > and > > 8080/tcp open http Caucho Resin JSP engine 3.1.9 > |_http-methods: No Allow or Public header in OPTIONS response (status > code 200) > |_html-title: Resin® Default Home Page > |_http-open-proxy: Proxy might be redirecting requests > Device type: general purpose > Running: FreeBSD 8.X > OS details: FreeBSD 8.0-BETA2 - 8.0-RELEASE > Network Distance: 0 hops > Service Info: Host: beta.maestro; OSs: Unix, FreeBSD > > It looks like manually copying those files does get the server working > both standalone and in aoache22. > > Tim Kellers > NJIT > > I should have also mentioned that I added this line to my /usr/local/etc/apache22/httpd.conf: LoadModule caucho_module libexec/apache22/mod_caucho.so Below the already listed LoadModule lines. Tim Kellers NJIT