1 |
hollow 08/01/31 17:24:41 |
2 |
|
3 |
Modified: 10_mod_cband.conf |
4 |
Log: |
5 |
cleanup |
6 |
(Portage version: 2.1.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.3 www-apache/mod_cband/files/10_mod_cband.conf |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_cband/files/10_mod_cband.conf?rev=1.3&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_cband/files/10_mod_cband.conf?rev=1.3&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_cband/files/10_mod_cband.conf?r1=1.2&r2=1.3 |
14 |
|
15 |
Index: 10_mod_cband.conf |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_cband/files/10_mod_cband.conf,v |
18 |
retrieving revision 1.2 |
19 |
retrieving revision 1.3 |
20 |
diff -u -r1.2 -r1.3 |
21 |
--- 10_mod_cband.conf 16 Mar 2006 17:51:54 -0000 1.2 |
22 |
+++ 10_mod_cband.conf 31 Jan 2008 17:24:41 -0000 1.3 |
23 |
@@ -4,39 +4,34 @@ |
24 |
# /usr/share/doc/mod_cband-*/ |
25 |
|
26 |
<IfDefine CBAND> |
27 |
- <IfModule !mod_cband.c> |
28 |
- LoadModule cband_module modules/mod_cband.so |
29 |
- </IfModule> |
30 |
-</IfDefine> |
31 |
+LoadModule cband_module modules/mod_cband.so |
32 |
+ |
33 |
+<Location /cband-status> |
34 |
+ SetHandler cband-status |
35 |
+</Location> |
36 |
|
37 |
-<IfModule mod_cband.c> |
38 |
+# Some defaults: |
39 |
+#CBandDefaultExceededURL http://www.google.com |
40 |
+#CBandScoreFlushPeriod 100 |
41 |
|
42 |
- <Location /cband-status> |
43 |
- SetHandler cband-status |
44 |
- </Location> |
45 |
+# And in virtual host configuration to limit it's speed: |
46 |
+#<VirtualHost *:80> |
47 |
+# DocumentRoot /var/www/example.com/htdocs |
48 |
+# ServerName www.example.com |
49 |
+# <IfModule mod_cband.c> |
50 |
+# CBandLimit 600M |
51 |
+# CBandExceededURL http://www.example.com/ex1.html |
52 |
+# CBandScoreboard /var/run/mod_cband.example.com.scoreboard |
53 |
+# CBandPeriod 200S |
54 |
+# |
55 |
+# # 100kb/s, 10 request/s, max 5 connections |
56 |
+# CBandSpeed 100kb 10 5 |
57 |
+# |
58 |
+# # 10kb/s, 3 request/s -> speed limit for any remote client, max 5 connections |
59 |
+# CBandRemoteSpeed 10kb/s 3 5 |
60 |
+# </IfModule> |
61 |
+#</VirtualHost> |
62 |
|
63 |
- ## Some defaults: |
64 |
- # |
65 |
- # CBandDefaultExceededURL http://www.google.com |
66 |
- # CBandScoreFlushPeriod 100 |
67 |
- # |
68 |
- ## And in virtual host configuration to limit it's speed: |
69 |
- # |
70 |
- # <VirtualHost *:80> |
71 |
- # DocumentRoot /var/www/example.com/htdocs |
72 |
- # ServerName www.example.com |
73 |
- # <IfModule mod_cband.c> |
74 |
- # CBandLimit 600M |
75 |
- # CBandExceededURL http://www.example.com/ex1.html |
76 |
- # CBandScoreboard /var/run/mod_cband.example.com.scoreboard |
77 |
- # CBandPeriod 200S |
78 |
- # |
79 |
- # # 100kb/s, 10 request/s, max 5 connections |
80 |
- # CBandSpeed 100kb 10 5 |
81 |
- # |
82 |
- # # 10kb/s, 3 request/s -> speed limit for any remote client, max 5 connections |
83 |
- # CBandRemoteSpeed 10kb/s 3 5 |
84 |
- # </IfModule> |
85 |
- # </VirtualHost> |
86 |
+</IfDefine> |
87 |
|
88 |
-</IfModule> |
89 |
+# vim: ts=4 filetype=apache |
90 |
|
91 |
|
92 |
|
93 |
-- |
94 |
gentoo-commits@l.g.o mailing list |