Below you will find pages that utilize the taxonomy term “Apache2”
Posts
apache2 限流模組 mod_cband 說明文件
Source:http://codee.pl/cband_documentation.html
Configuration
Configuration is very simple, you must write only several lines. First, you must add the following command to the main config file to load the mod_cband module:
LoadModule cband_module modules/mod_cband.so
Configuration Directives
New commands from 0.9.7.0 version:
- CBandDefaultExceededCode – the http code sent to the user when the quota is exceeded
Units accepted in various directives:
-
transfer speeds:
- kbps, Mbps, Gbps – multiples of “bits per second”, respectively: 1024, 1024*1024 and 1024*1024*1024 bps
- kb/s, Mb/s, Gb/s – multiples of “bytes per second”, respectively: 1024, 1024*1024 and 1024*1024*1024 b/s
- defaults to kbps
-
transfer quotas:
- K, M, G – multiples of bytes, respectively: 1000, 1000*1000 and 1000*1000*1000 bytes
- Ki, Mi, Gi – multiples of bytes, respectively: 1024, 1024*1024 and 1024*1024*1024 bytes
- defaults to K
-
time periods:
- S, M, H, D, W – multiples of seconds: Seconds, Minutes, Hours, Days, Weeks; respectively: 1, 60, 3600, 86400, 604800 seconds
- defaults to S
Name |
Description |
Context |
Syntax |
Name |
Description |
Context |
Syntax |
Example |
Name |
Description |
Default |
Context |
Syntax |
Example |
Name |
Description |
Context |
Syntax |