From owner-freebsd-questions@FreeBSD.ORG Mon Oct 24 21:32:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CC8016A41F for ; Mon, 24 Oct 2005 21:32:55 +0000 (GMT) (envelope-from dave.list@pixelhammer.com) Received: from ecluster6.tls.net (ecluster6.tls.net [65.196.224.136]) by mx1.FreeBSD.org (Postfix) with SMTP id 7B48C43D49 for ; Mon, 24 Oct 2005 21:32:54 +0000 (GMT) (envelope-from dave.list@pixelhammer.com) Received: (qmail 38887 invoked by uid 89); 24 Oct 2005 21:31:12 -0000 Received: from 64-184-8-5.bb.hrtc.net (HELO ?192.168.0.102?) (ldg%tls.net@64.184.8.5) by auth-ecluster6.tls.net with SMTP; 24 Oct 2005 21:31:12 -0000 Message-ID: <435D5303.3030906@pixelhammer.com> Date: Mon, 24 Oct 2005 16:32:51 -0500 From: DAve User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Carp and Apache 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: Mon, 24 Oct 2005 21:32:55 -0000 Good afternoon, This might be a stupid question, but that never stopped me before ;^) I've been watching CARP and now that it is in 5.4 I would like to give it a try but I am not able to find much information outside of using it with PF. I am curious how apache should be setup. Where httpd.conf requires an IP for named based hosting, should the httpd.conf contain the IP of the interface or the IP configured with CARP? I believe the carp interface is configured directly on top of the physical interface. That question in mind, am I completely off track here? I currently have ifconfig_em0="inet 10.0.240.140 netmask 255.255.255.0" ifconfig_em1="inet 10.0.241.140 netmask 255.255.255.0" ifconfig_em1_alias0="inet 10.0.241.143 netmask 0xffffffff" ifconfig_em1_alias1="inet 10.0.241.144 netmask 0xffffffff" ifconfig_em1_alias2="inet 10.0.241.145 netmask 0xffffffff" ifconfig_em1_alias3="inet 10.0.241.146 netmask 0xffffffff" defaultrouter="10.0.241.1" So from what I have read, simply adding the below should get me setup, providing that this is the rc.conf from the master ifconfig carp0 create ifconfig carp0 vhid 1 pass sdf899734h 10.0.241.140/24 ifconfig carp1 create ifconfig carp1 vhid 1 pass sdf899734h 10.0.241.143/24 ifconfig carp2 create ifconfig carp2 vhid 1 pass sdf899734h 10.0.241.144/24 ifconfig carp3 create ifconfig carp3 vhid 1 pass sdf899734h 10.0.241.145/24 ifconfig carp4 create ifconfig carp4 vhid 1 pass sdf899734h 10.0.241.146/24 Thanks, DAve