Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2008 10:53:59 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        David Karapetyan <david.karapetyan@gmail.com>
Cc:        freebsd-questions@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: Problem with www/mod_cband
Message-ID:  <20081017175359.GA27396@icarus.home.lan>
In-Reply-To: <20081017165741.GA2092@vagrant.math.nd.edu>
References:  <20081017165741.GA2092@vagrant.math.nd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081017175359.GA27396>