3 per-virtualhost bandwidth limiting configuration
4 Next, you may define virtualhosts bandwidth limits, URL locations and path to the scoreboard file for individual virtualhosts:
6 # specify default 'bandwidth exceeded' location
7 CBandDefaultExceededURL http://haha.org/bandwidth_exceeded.html
10 DocumentRoot /var/www/xyz.org/
12 CustomLog /var/log/apache2/xyz.org.access combined
13 ErrorLog /var/log/apache2/xyz.org.access.error
15 RewriteOptions inherit
17 # 100MB virtualhost bandwidth limit
20 # redirect to http://abc.org/bandwidth_exceeded.html
21 # when the limit has been reached
22 CBandExceededURL http://abc.org/bandwidth_exceeded.html
24 # virtualhost's scoreboard file
25 CBandScoreboard /var/run/apache2/xyz.org.scoreboard
30 per-user bandwidth limiting configuration (only in 0.9.1 version)
31 In 0.9.1 you can define limits for users and assign virtualhosts to them
34 # define user 'dembol'
36 # 200MB bandwidth limit for user 'dembol'
39 # redirect to http://abc.org/bandwidth_exceeded.html
40 # when the limit has been reached
41 CBandUserExceededURL http://abc.org/bandwidth_exceeded.html
43 # user's scoreboard file
44 CBandUserScoreboard /var/run/apache2/dembol.scoreboard
49 # assign virtualhost 'xyz.org' to user 'dembol'
52 # Specify virtualhost owner
56 # assign virtualhost 'aga.org' to user 'dembol'
59 # Specify virtualhost owner
65 per-user and per-virtualhost bandwidth limiting configuration (only in 0.9.1 version)
66 In 0.9.1 you can also mix per-user and per-virtualhost bandwidth limiting techniques
69 # define user 'dembol'
71 # 200MB bandwidth limit for user 'dembol'
74 # redirect to http://abc.org/bandwidth_exceeded.html
75 # when the limit has been reached
76 CBandUserExceededURL http://abc.org/bandwidth_exceeded.html
78 # user's scoreboard file
79 CBandUserScoreboard /var/run/apache2/dembol.scoreboard
83 # assign virtualhost 'xyz.org' to user 'dembol'
86 # Specify virtualhost owner
89 # 100MB virtualhost bandwidth limit
92 # redirect to http://abc.org/bandwidth_exceeded.html
93 # when the limit has been reached
94 CBandExceededURL http://abc.org/bandwidth_exceeded.html
96 # virtualhost's scoreboard file
97 CBandScoreboard /var/run/apache2/xyz.org.scoreboard
100 # assign virtualhost 'aga.org' to user 'dembol'
103 # Specify virtualhost owner