![]() |
|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hey guys, quick question - I want to limit the data that apache can transfer on a vhost basis... let me clarify.
I don't want to limit the bandwidth per se, I want to limit the amount of data that can be transfered. And I want to be able to configure this per vhost (each vhost can have different value). That way I can say this vhost can transfer 200MB/day, and this one 1G/day, etc. Anyone know of a solution for this? Preliminary google searches only yeild a way to limit the transfer rate (3kbps for this vhost, 10kbps for that). EDIT: In case it's necessary, it's apache22 on FreeBSD 7.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
![]()
Perhaps this article:
Manage Apache Download Speed And Traffic Limits could be of help after you adapting it to freebsd. |
|
|||
![]()
That's exactly what I'm looking for, thanks! I will adapt this to FreeBSD. Shouldn't be too bad as it should be APR.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
![]() ![]() I prefer to use ports for all software installation as it greatly increases the ease of administration of the system, however I might just build this from source like TFA says.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
![]()
Alright, I have a resolution, just so everybody knows.
So while the depends for mod_cband showed apache20, I looked at the makefile and it said apache20+, so apache22 will work. Sweet! However, the primary (and only) site to download from has been down for a good 6 months. The only contact email is also at the site (and while mail may still be working... who knows). Luckily I managed to find the source .tgz file elsewhere on the net. Downloaded it to my distfiles dir, and a "make install clean" later and I'm up and running with bandwidth limiting. Sweet! So if anyone else is interested contact me and I'll send along the link to the file (or post it here if enough people are interested). I'm debating if I should email the port maintainer to let them know of the situation.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
|
|||
![]()
Someone from ports@ has graciously added the second link so that this can be made from ports with no problems (however it was also pointed out to me by someone else that it would still work once it errored out on the main site by falling back to a copy of the tgz stored on FreeBSD's FTP server).
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident! |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
apache: data stuck in socket? | goertzenator | FreeBSD General | 8 | 16th February 2009 04:01 PM |
transfer rate | zomo | OpenBSD General | 7 | 26th January 2009 03:00 AM |
Have problem transfer large file bigger 1GB | bsdme2 | FreeBSD General | 9 | 14th January 2009 05:49 AM |
Local transfer is slow. | maurobottone | OpenBSD General | 1 | 10th January 2009 02:12 PM |
limit use memory by Apache | mfaridi | FreeBSD Security | 4 | 8th July 2008 05:59 PM |