تنظیم ِDownload limit در اپاچی mod_cband

تنظیم ِDownload limit در اپاچی mod_cband

گروه آموزشی مجموعه تدبیر

1 Installation On Debian Sarge

In order to compile mod_cband, we must have apxs2 installed. We can achieve that by doing this:

apt-get install apache2-prefork-dev

Next we download and install mod_cband like this:

cd /tmp
wget http://cband.linux.pl/download/mod-cband-0.9.7.4.tgz
tar xzvf mod-cband-0.9.7.4.tgz
cd mod-cband-0.9.7.4
./configure
make
make install

The make install command should have added the mod_cband module to /etc/apache2/httpd.conf. Run

vi /etc/apache2/httpd.conf

and check if you find a line like this:

LoadModule cband_module       /usr/lib/apache2/modules/mod_cband.so

(If you don’t find this line, add it yourself.)

Finallly restart Apache:

/etc/init.d/apache2 restart

The mod_cband installation is now finished.

2 Installation On Fedora Core 5

In order to compile mod_cband, we must have apxs installed. We can achieve that by doing this:

yum install httpd-devel

Next we download and install mod_cband like this:

cd /tmp
wget http://cband.linux.pl/download/mod-cband-0.9.7.4.tgz
tar xzvf mod-cband-0.9.7.4.tgz
cd mod-cband-0.9.7.4
./configure
make
make install

The make install command should have added the mod_cband module to /etc/httpd/conf/httpd.conf. Run

vi /etc/httpd/conf/httpd.conf

and check if you find a line like this:

LoadModule cband_module       /usr/lib64/httpd/modules/mod_cband.so

(If you don’t find this line, add it yourself.)

Finallly restart Apache:

/etc/init.d/httpd restart

The mod_cband installation is now finished.