[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mod_bandwidth



Hi!

mod_throttle works out for me...

Quite simple installation.... I wanted to bandwidth-limit a certain directory... here is how i did it,


LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so

and..

<IfModule mod_throttle.c>
  ThrottlePolicy none
  ThrottleMaxDelay 10

    <Location /throttle-status>
        SetHandler throttle-status
            Order deny,allow
        Deny from all
        Allow from monitor.host
    </Location>

    <Location /throttle-me>
        SetHandler throttle-me
        Order deny,allow
        Deny from all
        Allow from monitor.host
    </Location>

    <Location /~*/throttle-me>
        SetHandler throttle-me
        Order deny,allow
        Deny from all
        Allow from monitor.host
    </Location>

</IfModule>

.. and then 

<Directory /some/directory/here>

ThrottlePolicy speed 500 1

</Directory>

..

The ThrottlePolicy works like this..:

ThrottlePolicy module amount time

So in my case i wanted to limit this directory to 500kbytes per second (500kbytes/s ~ 5mbps)

I grabbed a copy of the site (i dont remember the URL) i got the info from..

http://sparklet.com/~royce/throttle/

Hope this helps some,

Yours,
Christofer

> I'm trying to get mod_bandwidth to work with my apache (1.3.26-0woody1)
> 
> I've read the info found here (http://www.cohprog.com/mod_bandwidth.html)
> but I still can't seem to make it work.
> 
> Anybody had any experience with this magical little non working feature? :)



Reply to: