Skip to content

Bandwidth Limiter for Apache httpd Server running on Apple Mac OS X 10.10 Yosemite

License

Notifications You must be signed in to change notification settings

whitemarten/mod_bw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mod_bw (for Mac OS X 10.10)

Bandwidth Limiter for Apache httpd Server running on Apple Mac OS X 10.10 Yosemite

Original version by Ivan Barrera A. (Santiago, Chile)

How to compile

Running sudo apxs -i -a -c mod_bw.c will build the module and install it here: /usr/libexec/apache2/mod_bw.so.

Note: Xcode command line tools have to be installed.

Install precompiled module

Alternatively copy the precompiled bin/mod_bw.so file to /usr/libexec/apache2/mod_bw.so.

The module has been built for Apache/2.4.9 (as shipped with Mac OS X 10.10.2).

Sample Configuration

One way of using this module is to limit the bandwidth on a virtual host.

The default configuration file can be found at this location: /private/etc/apache2/extra/httpd-vhosts.conf

You may add the following lines to one of your VirtualHosts like this:

<VirtualHost 127.0.0.1:80>
...
BandwidthModule On
ForceBandWidthModule On
# limit total bandwidth to 10MBit/s
Bandwidth all 10485760
...
</VirtualHost>

Documentation

For documentation see here: http://bwmod.sourceforge.net or have a look at the mod_bw.txt file.

About

Bandwidth Limiter for Apache httpd Server running on Apple Mac OS X 10.10 Yosemite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages