From owner-freebsd-ports@FreeBSD.ORG Fri Oct 17 17:54:01 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9868C1065693 for ; Fri, 17 Oct 2008 17:54:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id 65B838FC1C for ; Fri, 17 Oct 2008 17:54:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id Toxo1a0020cQ2SLA3tu0SF; Fri, 17 Oct 2008 17:54:00 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA10.emeryville.ca.mail.comcast.net with comcast id Tttz1a00i2P6wsM8Wtu0kR; Fri, 17 Oct 2008 17:54:00 +0000 X-Authority-Analysis: v=1.0 c=1 a=xNf9USuDAAAA:8 a=QycZ5dHgAAAA:8 a=kqiaZfXzlRZ7D6nRvHkA:9 a=GggfBuPj_zVCoHB-i-sA:7 a=CU8rKpE09aTCrr5cHBOT23r6wlYA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id D0FCCC9432; Fri, 17 Oct 2008 10:53:59 -0700 (PDT) Date: Fri, 17 Oct 2008 10:53:59 -0700 From: Jeremy Chadwick To: David Karapetyan Message-ID: <20081017175359.GA27396@icarus.home.lan> References: <20081017165741.GA2092@vagrant.math.nd.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081017165741.GA2092@vagrant.math.nd.edu> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Problem with www/mod_cband X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 17:54:01 -0000 On Fri, Oct 17, 2008 at 12:57:41PM -0400, David Karapetyan wrote: > FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: > Wed Oct 1 10:10:12 UTC 2008 > root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 > > Hello everyone. Every time I try to use the mod_cband module in my > apache22 webserver, apache segfaults upon restart. Things work fine when > I disable the module from httpd.conf. Is this module broken, and if so, > what comparable alternatives are there? Be aware that mod_cband has quite a horrible bug. This is a Debian bug report, but the same problem applies to FreeBSD. Be sure to read the entire bug, not just the original report. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418645 Regarding alternatives: there aren't. Bandwidth limiting is a long-standing feature of Apache that's missing, which is a huge disappointment. The best solution I've found on FreeBSD is to use pf(4) with ALTQ, and give each VirtualHost its own IP address, then rate-limit the IP address using pf(4). Yes, I realise this is impractical for sites which have many vhosts and use name-based virtualhosts. Welcome to my world... -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |