How to limit the bandwidth of Apache with mod_bw on FreeBSD

First you have to install mod_bw:

Then open your httpd.conf and locate


Remove the comment like this:


Then you can add the following to your VirtualHost or global configuration to limit a directory speed, in my case I want to limit the band files where we host our demo materials width a limit of 50kb/s.


This is an example how you can globally limit all the traffic of your Apache installation.


For more info on this you can open the readme, which is located at: