X-treme
02-18-2001, 03:07 AM
I was wondering if there is a way to put a Bandwidth quota for virtual hosts (both ip and name based) in Apache? I know how to do the disk quota but I am looking to do the same with Bandwidth usage so I dont have to manually figure out the usage from logs.
Is there a module or a script that anyone knows of that will allow me to put a cap on virtual hosts bandwidth usage and also notify them when they are getting close to their alloted limit?
Thanks in advance.
X-treme
Jason_Berresford
02-18-2001, 07:24 AM
mod_bandwidth, its an apache module.
After a quick search a came up with this url : http://www.cohprog.com/mod_bandwidth.html
Have a look.
X-treme
02-18-2001, 11:56 AM
Jason I have also found that. The only problem is from what I understand that module just graphs bandwidth usage, it doesnt limit what each virtual host can use. Is anyone using this module that can confirm this?
Any programmers out there that can help with this? I know it is possible because I have seen it on Alabanza and VDI. I am just not sure how to go about implimenting it.
Thanks Jason.
X-treme
EDITED :
I stand corrected that is not the same mod I have seen I think that will do the job!! Thanks Jason!!!
X-treme
X-treme
02-19-2001, 01:07 AM
Does anyone know of a way to put bandwidth quotas on virtual_hosts in Apache? I have looked at mod_bandwidth but it is not what I am looking for. What I need is a way to limit total bandwidth usage for each virtual_host on a monthly basis. Ex. xhost.com 3 gigs per month, vhost.com 2 gigs per month etc. I have been doing this manually with the traffic logs but it has become overwhelming. Is there a way I can parse the info from the logs for each host and have it print out the total usage to date and total to use, on a status page or something? or has anyone figured out a way to do this??
Thanks in advance.
X-treme
xtremedesigns@zxmail.com
Chicken
02-19-2001, 09:22 AM
I haven't looked at it, but am guessing you can limit someting by speed, correct? Say, 128Kbps or ??? Wh\ithout knowing if this is how it works, I'll just stop now...
lienzi
02-19-2001, 10:25 AM
you can use mod_throttle for this. go to modules.apache.org and search for mod_throttle.
works!
armin
Jason_Berresford
02-19-2001, 12:19 PM
My mistake x-tream I thought you where looking for a bandwidth mod .. not a transfer mod :)
X-treme
02-19-2001, 07:17 PM
Thanks guys I will check out throttle_mod and see if it will work for me!
Thanks again to all!!
X-treme