Results 1 to 3 of 3
-
03-19-2004, 04:37 AM #1Disabled
- Join Date
- May 2003
- Posts
- 121
Limiting bandwidth in Virtual Hosts in apache
Hi,
All of my web hosting accounts that I set up for my clients are pretty simple, apache VirtualHosts..
I have a
Include "/usr/local/apache/vhosts" in my httpd.conf
so i just create /usr/local/apache/vhosts/$systemusername
well anyhow, i'd really like to be able to limit each account 10-20GB of transfer.
I've heard of things like mod_throttle but I hear that it loses its state once you restart apache?
I would *really* like to be able to set up each virtualhost in apache with a limit of 20gb unless specified otherwise..
so this way as soon as it reaches 20gb it will just stop the site, suspend it, or chmod 0 it or something i don't know.. but i think you all get the idea
Can anyone recommend anything to me, or have any ideas?
Any feedback would be greatly appreciated.
Thanks all!
-
03-19-2004, 04:59 AM #2Web Hosting Master
- Join Date
- Jul 2002
- Location
- San Luis Obispo, CA
- Posts
- 818
mod_throttle does not lose anything if you specify
ThrottleRuntimeFile /etc/httpd/conf/throttle.runtime
-
03-20-2004, 04:58 AM #3Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 772
Hi,
As suggested by ntwaddel, I don't think so "mod_throttle" will lose its state once Apache gets restarted. Have a look into this URL for more info.
http://www.snert.com/Software/mod_throttle/
Regards,
Bright