読者です 読者をやめる 読者になる 読者になる

mod_cband

mkdir /var/apache/scoreboard
chown apache.apache /var/apache/scoreboard
  # +++ mod_cband
  #    多分間違ってるので参考程度に。
   #CBandExceededSpeed 2048kbps 5 15
   #CBandScoreBoard /var/apache/scoreboard
   #CBandPeriod 1W

   #at server: 5Mbps, 30request/s, 30connect/s
   CBandSpeed 5Mbps 30 30
   #at client: 2Mbps 20request/s, 20connect/s 
   CBandRemoteSpeed 2048kb/s 20 20 

   <Location /cband-status>
     Order deny,allow
     Deny from all
     Allow from (閲覧を許可するipアドレス)
     SetHandler cband-status
   </Location>
   <Location /cband-status-me>
     Order deny,allow
     Deny from all
     Allow from (閲覧を許可するipアドレス)
     SetHandler cband-status-me
   </Location>