" class="title" title="home again woohoo">Home ?> pages bg right
Posted by Bruce on January 6, 2010


Downloads for Bandwidth Mod

Apache Modules :

bw_mod [a.k.a. mod_bandwidth]mod_vhost_limit
Ivn Project License : [Download]



Author : Ivan Barrera (Bruce)
Contact E-Mail : Bruce (at ivn)
Status : Stable
Current Version : v0.92

Files :

  • 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

    If you have any comments, bug reports, feature request, etc, post it right here.

    Bw Mod v0.8 [Readme]
    Bw Mod v0.7 [Readme]
    Bw_Mod v0.6 Still available, and with its README here.
    Bw_Mod v0.5 Stable is obsoleted, and should not be used, unless you want to play with it.
    Bw_Mod v0.5 RC1 is obsoleted, and should not be used, unless you want to play with it.
    Mod_bandwidth v0.1 is obsoleted, and should not be used.




    NAME
    mod_vhost_limit.c [Download]

    PURPOSE
    Restrict the number of simultaneous connections per vhost

    HISTORY

  • - 2007.04.06
    Included some cleanup, and fixes suggested (and coded by) Chirouze Olivier

  • 2004.02.26
    Added compile.sh , to ease the compiling proccess.

  • 2004.02.24
    Initial revision 0.1

    COMMENTS

    If ExtendedStatus is Off, it wont work. Anyways, you’ll be warned
    I was based on mod_vhost_limit from Takato Satsuma [takato@nowhere-land.org]
    who wrote it for Apache1.3. Download it here

    If you run into problems, be sure ExtendedStatus is set On before the
    LoadModule sentence.Also note, that the MaxVhostClients must be after
    the ServerName directive.

  • Post a Comment
    

    13 Responses to “Downloads for Bandwidth Mod”

    1. Tomas M says:

      The download of mod_bw v0.8 – Source Code doesn’t work!

    2. Bobb says:

      Hello,
      I get this error trying to start apache after installing your 0.7 version of this module:
      Cannot load /usr/local/apache/modules/mod_bw.so into server: /usr/local/apache/modules/mod_bw.so: undefined symbol: apr_atomic_cas

      any ideas?

    3. Bruce says:

      Sorry !
      When i moved the downloads content from the old page, i didn’t update the links..

      Thanks for the head’s up !

    4. Bruce says:

      Yep.
      First, try using v0.8

      The error you are getting, is because some distributions (asuming you are using linux) uses a different APR lib, which do not use apr_atomic_cas anymore, and instead uses apr_atomic_cas32.
      v0.8 should fix this for you… Or, if you want to stick to 0.7, replace all ocurrences of apr_atomic_cas with apr_atomic_cas32 (and i think, you will have to change some other keywords too, like atomic_add , etc)

    5. Bobb says:

      0.8 works! I have a question, which answer didnt find in the .txt file.
      Can I set vhost with unlimited bandwidth and speed, but will get only 50 simultaneous connections and no more?

    6. Bruce says:

      Hi,
      You need to put a bandwidth limit , with a ridiculously high limit, and then set maxconnections for the same network.
      i.e.

      BandWidth all 2000000
      MaxConnection all 50

      There have been some bugs about this feature when using the speed 0 as unlimited.. Thats why you need a limit.
      (Ill fix this in the future)

    7. michael says:

      Hi,

      I use it in a Apache2 with CPANEL.
      I create include files inside Virtual Host, use the config:

      BandWidthModule On
      ForceBandWidthModule On
      LargeFileLimit .rar 500 5000

      But the download speed still UP of my limit configuration param.

      – Edit : The problem was that the configuration on the cluster took a little longer to refresh.

    8. Christian32 says:

      Hello,
      I use Apache 2.2.x. Can i limit the monthly bandwidth amount of a vhost?

      For example:
      site.com : 10GB/Monthly

      many thanks,
      Best regards

    9. kevin says:

      Would be nice to have a maxconnection setting that would be applied per IP, like 3 connections max per ip..
      Thanks!

    10. Bruce says:

      Yeah,
      Im working on that. Im sorry ive taken so long, but i have a huge pile of “to do” to do :D