1 |
Hi there, |
2 |
For a while now I've been using Mod_BW to limit bandwidth for a directory on |
3 |
my website. We have a residential ADSL line, and some files I'm hosting are |
4 |
somewhat popular, leading to bandwidth usage and Internet slowness for the |
5 |
rest of the household. The bandwidth limiting for one directory is working |
6 |
but not for another directory. In this file, dectalk is being limited but |
7 |
lchoice isn't. Any idea why? |
8 |
Here is the config file 11_mod_bw.conf in /etc/apache/modules.d |
9 |
Jayson. |
10 |
|
11 |
<IfDefine BW> |
12 |
<IfModule !mod_bw.c> |
13 |
LoadModule bw_module modules/mod_bw.so |
14 |
</IfModule> |
15 |
</IfDefine> |
16 |
|
17 |
<IfModule mod_bw.c> |
18 |
# This must be turned on for mod_bandwidth to actually do anything |
19 |
# These directives can go inside a VirtualHost or Directory, etc... |
20 |
# |
21 |
BandWidthModule On |
22 |
<VirtualHost *> |
23 |
DocumentRoot /var/www/localhost/htdocs |
24 |
<Directory /var/www/localhost/htdocs/dectalk> |
25 |
BandWidthModule On |
26 |
BandWidth all 8192 |
27 |
</Directory> |
28 |
<Directory /var/www/localhost/htdocs/lchoice> |
29 |
BandWidthModule On |
30 |
BandWidth All 16384 |
31 |
</Directory> |
32 |
</VirtualHost> |
33 |
|
34 |
# Limit 196.168.0.0/24 to 80KB/sec, with a minimum of 60KB/sec |
35 |
# |
36 |
# BandWidth 196.168.0 80000 |
37 |
# BandWidth 196.168.0 60000 |
38 |
|
39 |
# Everyone else shares 50KB/sec |
40 |
# |
41 |
Bandwidth all 20480 |
42 |
</IfModule> |
43 |
|
44 |
-- |
45 |
gentoo-user@g.o mailing list |