PALMisLIFE 討論區

搜索
鹹魚爸魅力四射舞蹈教室
查看: 3074|回復: 3
打印 上一主題 下一主題

【討論】Apache 可否作資料夾限速?

[複製鏈接]

3867

主題

126

好友

2626

積分

  • TA的每日心情

    2011-4-12 00:15
  • 簽到天數: 3 天

    連續簽到: 2 天

    [LV.2]偶爾看看I

    文章
    35006
    跳轉到指定樓層
    1#
    發表於 2002-7-4 18:13 |只看該作者 |倒序瀏覽
    apache 有特定資料夾下檔案限速、線不能分割下載之類的功能ㄇ?
      
    就是別人抓檔的時候會有速度限制~~ 只能單線裎下載.. 5k... 例如這樣~
    分享淘帖0 分享分享0 收藏收藏0 頂0 踩0
    阿輝攝影記錄服務 | 婚禮記錄 | 活動拍攝
    http://www.giorno.tw/

    270

    主題

    0

    好友

    3673

    積分

    大隱隱於市

    該用戶從未簽到

    文章
    7360
    2#
    發表於 2002-7-15 12:56 |只看該作者

    回覆: 【討論】Apache 可否作資料夾限速?

    阿輝 wrote:
    apache 有特定資料夾下檔案限速、線不能分割下載之類的功能ㄇ?
      
    就是別人抓檔的時候會有速度限制~~ 只能單線裎下載.. 5k... 例如這樣~

      
    相關連結:
    http://www.apache.org/dist/httpd/contrib/modules/1.2/
      
    http://www.apache.org/dist/httpd ... /mod_simultaneous.c
      * mod_simultaneous.c
      *  
      * Michael Davon 10/95 (davon@web-depot.com)
      *  
      * Limit the number of simultaneous accesses to files in a
      * particular directory.  Allow servers to wait for access.
      *
      * Using this module will increase the load on the server, since
      * it will do a fair amount of file access to manage the locks.
      * However, this module is quite effective at limiting access.
      *
      * This is particularly useful if you only have so much bandwidth
      * on your network connection, and don't want it all sucked up
      * by people looking at pictures.
      *
      * Note that when servers are waiting for access, they wake up
      * once per second, and try again for access.  There is no queue, so
      * whichever waiting process wakes up first (when access is available)
      * gets the access.  Queuing would be nice, but is hard to implement.
      *
      * An effective strategy to limit bandwidth consumption may be  
      * as follows:
      *
      *  SimultaneousAccesses   1
      *  SimultaneousWait    4000
      *  SimultaneousValidate  10
      *
      * This will have the effect of allowing only 1 access to a directory at a
      * time, however, it will keep the server waiting until it finally does
      * get access (up to 4000 seconds), and it will validate the locks every
      * 10 seconds, just to make sure the locking process is still around.
      *
      * Setting "SimultaneousAccesses 0" allows unchecked access.
      *
      * Setting "SimultaneousWait 0" will not wait, and will timeout
      * immediately if there is no slot available.
      *
      * Setting "SimultaneousValidate 0" will never validate the slots.
      *
      * Setting "SimultaneousValidate 1" will validate the slots every second.
      */

      
    http://www.apache.org/dist/httpd/contrib/modules/1.2/mod_limit.c
    * mod_limit.c: limits on daily usage by users
      * A user can only xfer so many bytes/period.
      *
      * Sameer Parekh
      
    亞太 0980/050/589
    中華 0989/907/695
    回復

    使用道具 舉報

    2

    主題

    0

    好友

    153

    積分

    該用戶從未簽到

    文章
    151
    3#
    發表於 2002-7-20 16:27 |只看該作者

    Re:【討論】Apache 可否作資料夾限速?

    apache正點
    回復

    使用道具 舉報

    3867

    主題

    126

    好友

    2626

    積分

  • TA的每日心情

    2011-4-12 00:15
  • 簽到天數: 3 天

    連續簽到: 2 天

    [LV.2]偶爾看看I

    文章
    35006
    4#
    發表於 2002-7-20 17:37 |只看該作者

    Re:【討論】Apache 可否作資料夾限速?

    其實我很想說..
      
    我.. 看不太懂... XD
    阿輝攝影記錄服務 | 婚禮記錄 | 活動拍攝
    http://www.giorno.tw/
    回復

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 免費註冊

    與站長聯繫| PALMisLIFE 掌上生活      下載:更快、更棒、更好玩

    GMT+8, 2024-12-24 04:22 , Processed in 0.025447 second(s), 30 queries , Gzip On.

    Powered by Discuz!

    © 2001-2012 Comsenz Inc. style by eisdl

    回頂部