Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 76b29b775e10ae052e04f1cae2e53d6e > files > 2

mod_cband-0.9.7.5-5.fc12.src.rpm


# This is an example config for the mod_cband bandwidth limiting module

# Load the module
LoadModule cband_module         modules/mod_cband.so

# This can will give you the bandwidth status.  You can append "?xml" to
# the end of the URI if you have an XML fetish (weirdo!) and want to see
# it in that format.

<Location /cband-status>
SetHandler cband-status
Order allow,deny
Allow from 127.0.0.1/32
</Location>

# This space intentionally left commented. See the docs for more examples,
# including but not limited to per-user limits.

# Speed limiting.

#<VirtualHost *:80>
#    DocumentRoot /var/www/xyz.org/
#    ServerName xyz.org
#    CustomLog /var/log/apache2/xyz.org.access combined
#    ErrorLog /var/log/apache2/xyz.org.access.error
#    RewriteEngine On
#    RewriteOptions inherit
#
#    # Maximal 1024kbps speed for this virtualhost
#    # Maximal 10 requests per second for this virtualhost
#    # Maximal 30 open connections for this virtualhost
#    CBandSpeed 1024 10 30
#    
#    # Maximal 10kB/s speed, 3 requests/s and 2 open connections for any
#    remote client
#    CBandRemoteSpeed 10kb/s 3 2
#    
#    # Maximal 20kB/s speed, 2 requests/s and 3 open connections for
#    remote
#    # clients from class googlebot_class :P
#    CBandClassRemoteSpeed googlebot_class 20kb/s 2 3
#</VirtualHost>

# Bandwidth quota

# Specify default 'bandwidth exceeded' location
# CBandDefaultExceededURL	http://grumblesmurf.org/bandwidth_exceeded.html
#
#<VirtualHost *:80>
#    DocumentRoot /var/www/xyz.org/
#    ServerName xyz.org
#    CustomLog /var/log/apache2/xyz.org.access combined
#    ErrorLog /var/log/apache2/xyz.org.access.error
#    RewriteEngine On
#    RewriteOptions inherit
#
#    # 100MB virtualhost bandwidth limit
#    CBandLimit 100000
#
#    # redirect to http://abc.org/bandwidth_exceeded.html
#    # when the limit has been reached
#    CBandExceededURL http://abc.org/bandwidth_exceeded.html
#
#    # virtualhost's scoreboard file
#    CBandScoreboard /var/run/apache2/xyz.org.scoreboard
#    
#    # a period of time after which the scoreboard will be cleared (30
#    minutes) 
#    CBandPeriod 30M
#</VirtualHost>