Using mod-cband to limit monthly bandwidth on apache2 vhosts

Install apt-get install apache2-dev cd var wget http://dembol.org/downloads/cband/mod-cband-0.9.7.5.tgz tar -zxvf mod-cband-0.9.7.5.tgz cd mod-cband-0.9.7.5 ./configure ———————————————————— Now open Makefile and edit the line APXS_OPTS=* to APXS_OPTS=-lm -Wc,-Wall -Wc,-DDST_CLASS=3 ———————————————————— make make install Example vhost <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/dom.ex/public_html/testblog ServerName testblog.dom.ex CBandLimit 100G CBandScoreboard /var/www/scoreboard CBandPeriod 4W #<Location /cband-status> #    SetHandler cband-status #</Location> <Location /cband-status-me> […]