From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 21:56:20 2008 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 C70F816A417 for ; Thu, 10 Jan 2008 21:56:20 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.4.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9E5FC13C474 for ; Thu, 10 Jan 2008 21:56:20 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from [192.168.1.110] (ool-4b7f8e42.static.optonline.net [75.127.142.66]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JUG00IRT67O3391@mta1.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Thu, 10 Jan 2008 16:26:13 -0500 (EST) Date: Thu, 10 Jan 2008 16:26:12 -0500 From: John Almberg To: freebsd-questions@freebsd.org Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to add proxy modules to Apache22 on FreeBSD 6.3 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, 10 Jan 2008 21:56:21 -0000 I have just spent the whole day trying to figure out how to enable mod_proxy, mod_proxy_http, and mod_proxy_balancer in Apache22 on FreeBSD 6.3. As I was writing up the question, I figured it out (isn't that so often the case?) It was stupidly simple, so perhaps this email will save someone else from a wasted day... This has always worked in the past for me, but didn't work on my new 6.3 machine (despite the instructions in the Makefiles): cd /usr/ports/www/apache22 make clean make WITH_CUSTOM_PROXY="proxy proxy_http proxy_balancer" make deinstall make reinstall I tried every make variation possible. I tried putting my options in make.conf. I changed the Makefile.options. But nothing worked... no matter what I tried, Apache always complied without the new proxy modules. Oh, and I wore out Google searching for help. Every example showed something like the above, with an occasional sentence like 'with FreeBSD you don't run ./configure'. Well, actually, you do... sort of... Here's the answer you've been googling for. Do this: cd /usr/ports/www/apache22 make configure A nice menu will pop up, with all the current options selected. Just scroll down and click the modules you want, save, then continue as above. Of course, you still need to add the modules to httpd.conf: LoadModule proxy_module libexec/apache22/mod_proxy.so LoadModule proxy_http_module libexec/apache22/mod_proxy_http.so LoadModule proxy_balancer_module libexec/apache22/mod_proxy_balancer.so Restart apache and you are ready to go! Wow! I wish I'd found this email sooner! -- John ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Websites for On-line Collectible Dealers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Identry, LLC John Almberg jalmberg@identry.com www.identry.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~