<Location /cband-status>
SetHandler cband-status
Order allow,deny
Allow from 127.0.0.1/32 122.115.10.xxx
</Location>
<VirtualHost *:80>
DocumentRoot /var/www/html/
ServerName www1.xxx.com.tw
CustomLog logs/www1.xxx.com.tw-access_log combined
ErrorLog logs/www1.xxx.com.tw-error_log
RewriteEngine On
RewriteOptions inherit
# CBandSpeed 設定給這個 virtualhost 總配給最大多少頻寬kbps、每秒30個要求、最大20個連線
CBandSpeed 10240 30 20
# CBandRemoteSpeed 設定每個 Client 的配給300kbytes、每秒3個要求、2個連線
CBandRemoteSpeed 300kb/s 3 2
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/html/
ServerName www2.xxx.com.tw
CustomLog logs/www2.xxx.com.tw-access_log combined
ErrorLog logs/www2.xxx.com.tw-error_log
RewriteEngine On
RewriteOptions inherit
CBandSpeed 1024 10 30
CBandRemoteSpeed 10kb/s 3 2
</VirtualHost>
歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) | Powered by Discuz! 6.0.0 |