summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/mod_bandwidth/files/10_mod_bandwidth.conf')
-rw-r--r--net-www/mod_bandwidth/files/10_mod_bandwidth.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-www/mod_bandwidth/files/10_mod_bandwidth.conf b/net-www/mod_bandwidth/files/10_mod_bandwidth.conf
new file mode 100644
index 000000000000..70ced3dbcaf3
--- /dev/null
+++ b/net-www/mod_bandwidth/files/10_mod_bandwidth.conf
@@ -0,0 +1,30 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/files/10_mod_bandwidth.conf,v 1.1 2005/01/08 21:06:39 hollow Exp $
+
+<IfDefine BANDWIDTH>
+ <IfModule !mod_bandwidth.c>
+ LoadModule bandwidth_module modules/mod_bandwidth.so
+ </IfModule>
+</IfDefine>
+
+#
+# Syntax can be found at http://www.cohprog.com/v3/bandwidth/doc-en.html
+#
+<IfModule mod_bandwidth.c>
+ BandWidthDataDir /var/cache/mod_bandwidth
+
+ # This must be turned on for mod_bandwidth to actually do anything
+ # These directives can go inside a VirtualHost or Directory, etc...
+ #
+ # BandWidthModule On
+
+ # Limit 196.168.0.0/24 to 80KB/sec, with a minimum of 60KB/sec
+ #
+ # BandWidth 196.168.0 80000
+ # BandWidth 196.168.0 60000
+
+ # Everyone else shares 50KB/sec
+ #
+ # Bandwidth all 50000
+</IfModule>