apache2 流量限制

1. 下載 Apache 2 Bandwidth Quota and Throttling cd /tmp sudo wget http://cband.linux.pl/download/mod-cband-0.9.7.5.tgz 2. 解壓縮 sudo tar zxvf m...

1. 下載 Apache 2 Bandwidth Quota and Throttling
cd /tmp
sudo wget http://cband.linux.pl/download/mod-cband-0.9.7.5.tgz

2. 解壓縮
sudo tar zxvf mod-cband-0.9.7.5.tgz

3. 安裝 make 套件
sudo apt-get install make

4. 進行編譯
sudo ./configure
sudo make
sudo make install

5. 設定 scoreboard
sudo mkdir /var/www/scoreboard
sudo chown www-data.www-data /var/www/scoreboard/

6. 設定檔 /etc/apache2/httpd.conf
CBandScoreFlushPeriod 1
CBandRandomPulse On

#
# mod_cband
#

SetHandler cband-status


CBandClassDst 127/8
CBandClassDst 192.168.10.0/24


ServerAdmin fjufirefox@gmail.com
DocumentRoot /var/www/
ServerName ubuntu.localdomain
#ErrorLog logs/ubuntu.localdomain-error_log
#CustomLog logs/ubuntu.localdomain-access_log common
CBandSpeed 1024 200 200
CBandRemoteSpeed 1024kb/s 50 50
CBandClassRemoteSpeed local_class 1000Gbps 1000 1000
CBandLimit 10G
CBandPeriod 1W
CBandScoreboard /var/www/scoreboard

名稱

2330,1,27.5G,1,快速分享,1,李宗瑞,1,抽獎,1,省思,10,研討會,6,風水,2,旅遊,4,書摘,4,健康,3,教學,13,就要醬玩,1,無痛,1,愛美,4,愛情,11,網路資源,43,懶人包,1,Adobe,7,Apollo,5,CHANEL,1,Cisco,3,Coldfusion,13,Colud Storage,1,DD-WRT,8,Dropbox,2,Dropbox 18G,1,Flash,2,Flex,44,Fon,11,Game,1,Kuso,15,Linux,88,Microsoft,13,Movie,7,Nas Server,79,Other,25,Revolution,2,SQL,4,Tip,44,Web,13,
ltr
item
fjufirefox: apache2 流量限制
apache2 流量限制
fjufirefox
https://fjufirefox.blogspot.com/2007/01/apache2.html
https://fjufirefox.blogspot.com/
https://fjufirefox.blogspot.com/
https://fjufirefox.blogspot.com/2007/01/apache2.html
true
37845053
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy