Resin 3.1.9, Apache 2.2.16 and mod_caucho?
Tim Kellers
timothyk at wallnet.com
Thu Oct 14 18:59:36 UTC 2010
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<wodfer at gmail.com> wrote:
>>> On Thu, Oct 14, 2010 at 1:06 PM, Christer Solskogen<
>>> christer.solskogen at gmail.com> wrote:
>>>
>>>> On Thu, Oct 14, 2010 at 10:16 AM, Andy Wodfer<wodfer at gmail.com>
>>>> 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
More information about the freebsd-questions
mailing list