mod_bandwidth : APACI & APXS installation

WARNING: It is very important to give the lowest priority to mod_bandwidth so other modules will have the time to do their job before the documents are transmited ! For that reason, it is important to follow those steps :

APACI installation

* Copy the file mod_bandwidth.c to your Apache source directory.
* Run the ./configure script with the following directives :
–add-module=mod_bandwidth.c –permute-module=BEGIN:bandwidth
* Compile and install Apache.

APXS installation

* Compile the module with :
/path_to_apache/bin/apxs -c /path/mod_bandwidth.c -o /path_to_apache/libexec/mod_bandwidth.so
* Add the following lines to your httpd.conf file :
LoadModule bandwidth_module libexec/mod_bandwidth.so
AddModule mod_bandwidth.c

Those directives should be placed at the begining of the list so that the module will be given the lowest priority and be executed after others modules.

Reference: http://www.cohprog.com/v3/bandwidth/doc-en.html

Comments are closed.