summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apache/mod_cband')
-rw-r--r--www-apache/mod_cband/ChangeLog7
-rw-r--r--www-apache/mod_cband/files/10_mod_cband.conf59
2 files changed, 32 insertions, 34 deletions
diff --git a/www-apache/mod_cband/ChangeLog b/www-apache/mod_cband/ChangeLog
index 76d518770410..74574faf910b 100644
--- a/www-apache/mod_cband/ChangeLog
+++ b/www-apache/mod_cband/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for www-apache/mod_cband
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_cband/ChangeLog,v 1.11 2007/06/16 22:38:07 nelchael Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_cband/ChangeLog,v 1.12 2008/01/31 17:24:40 hollow Exp $
+
+ 31 Jan 2008; Benedikt Böhm <hollow@gentoo.org> files/10_mod_cband.conf:
+ cleanup
16 Jun 2007; Krzysiek Pawlik <nelchael@gentoo.org>
-mod_cband-0.9.7.2.ebuild:
diff --git a/www-apache/mod_cband/files/10_mod_cband.conf b/www-apache/mod_cband/files/10_mod_cband.conf
index 68b2ed5c626f..7f038889c62f 100644
--- a/www-apache/mod_cband/files/10_mod_cband.conf
+++ b/www-apache/mod_cband/files/10_mod_cband.conf
@@ -4,39 +4,34 @@
# /usr/share/doc/mod_cband-*/
<IfDefine CBAND>
- <IfModule !mod_cband.c>
- LoadModule cband_module modules/mod_cband.so
- </IfModule>
-</IfDefine>
+LoadModule cband_module modules/mod_cband.so
+
+<Location /cband-status>
+ SetHandler cband-status
+</Location>
-<IfModule mod_cband.c>
+# Some defaults:
+#CBandDefaultExceededURL http://www.google.com
+#CBandScoreFlushPeriod 100
- <Location /cband-status>
- SetHandler cband-status
- </Location>
+# And in virtual host configuration to limit it's speed:
+#<VirtualHost *:80>
+# DocumentRoot /var/www/example.com/htdocs
+# ServerName www.example.com
+# <IfModule mod_cband.c>
+# CBandLimit 600M
+# CBandExceededURL http://www.example.com/ex1.html
+# CBandScoreboard /var/run/mod_cband.example.com.scoreboard
+# CBandPeriod 200S
+#
+# # 100kb/s, 10 request/s, max 5 connections
+# CBandSpeed 100kb 10 5
+#
+# # 10kb/s, 3 request/s -> speed limit for any remote client, max 5 connections
+# CBandRemoteSpeed 10kb/s 3 5
+# </IfModule>
+#</VirtualHost>
- ## Some defaults:
- #
- # CBandDefaultExceededURL http://www.google.com
- # CBandScoreFlushPeriod 100
- #
- ## And in virtual host configuration to limit it's speed:
- #
- # <VirtualHost *:80>
- # DocumentRoot /var/www/example.com/htdocs
- # ServerName www.example.com
- # <IfModule mod_cband.c>
- # CBandLimit 600M
- # CBandExceededURL http://www.example.com/ex1.html
- # CBandScoreboard /var/run/mod_cband.example.com.scoreboard
- # CBandPeriod 200S
- #
- # # 100kb/s, 10 request/s, max 5 connections
- # CBandSpeed 100kb 10 5
- #
- # # 10kb/s, 3 request/s -> speed limit for any remote client, max 5 connections
- # CBandRemoteSpeed 10kb/s 3 5
- # </IfModule>
- # </VirtualHost>
+</IfDefine>
-</IfModule>
+# vim: ts=4 filetype=apache