1. mod download


mod_bw 다운로드 (윈도우 Apache 2.2.17에서 작동 되었습니다.)

위 파일을 다운로드한 후 Apache Module폴더에 복사 합니다. mod_bw.dll의 파일명과 확장자를 가집니다. 검색엔진으로 찾아보면 mod_bw.so파일의 확장자를 가지는 버전도 있습니다. 둘의 차이를 잘모르겠습니다. 이 버번은 구굴을 검색해서 찾은 최신의 버전이였습니다.

자세한 사항은 아래 링크 참조.

 http://ivn.cl/2010/01/06/downloads-for-bandwidth-mod/
 

  • mod_bw v0.92 – Source Code – [Download][Readme]
  • mod_bw v0.9 – Source Code – [Download][Readme]
  • mod_bw v0.91 – Windows Release for Apache 2.2.14 – [Download]
  • mod_bw SLN – Visual Studio 2008 Solution – [Download][Readme]

    Purpose :

  • Restrict the number of simultaneous connections per vhost/dir
  • Limit the bandwidth for files on vhost/dir
  • Get some basic stats
  • Changelog for v0.92 :

  • 0.92 Fixes the ap_get_server_banner issue.
  • 0.91 introduces fixes mainly for users running on Windows. See Readme.
  • Fixed an “invisible” memory leak, and a signed/unsigned issue affecting MinBandWidth
  • Code Cleanup for Visual Studio
  • Status page for running vhost!
  • Platforms :

  • Linux/x86
  • FreeBSD/x86 v5.2
  • MacOS X/ppc x86
  • Solaris 8/sparc
  • Microsoft Windows


  • 2. mod_setting

    예제1)
    50MB 이상 사이즈파일에 대해서 1024KB(1MBps)의 대역폭으로 제한하려고 한다면 아래를
    httpd.conf에 추가
     
    #대역폭 제한(mod_bw)
    LoadModule bw_module modules/mod_bw.dll
    <IfModule bw_module>
    BandWidthModule On
    ForceBandWidthModule On
    LargeFileLimit * 51200  1024000
    </IfModule>
     
    LargeFileLimit(큰파일제한) *(모든파일) 20480(크기) 1024000(제한속도)


    예제2)

     
    LoadModule bw_module modules/mod_bw.dll

    <IfModule bw_module>
     BandwidthModule On
     ForceBandWidthModule On
     Bandwidth all 819200
     MinBandWidth all 51200
     LargeFileLimit * 500 4096
     MaxConnection all 30
    </IfModule>

    아래 3가지 옵션을 추가로 설정 할 수 있음.
    Bandwidth all 819200
    MinBandWidth all
    51200
    MaxConnection all 30

    모든 다운로드되는 파일은 51kb/sec 의 속도로 제한이 되었음.



    <크기 계산 참고>
    52428800바이트(B)
    51200킬로바이트(KB)
    50메가바이트(MB)

    <속도 계산 참고>
    1024000바이트(B)
    1000킬로바이트(KB)
    0.976563메가바이트(MB)


    참고(출처) 사이트 :
    http://suminstory.tistory.com/81
    http://jnstory.net/6
    http://wonsama.tistory.com/150
    http://ivn.cl/2010/01/06/downloads-for-bandwidth-mod/

    + Recent posts