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/$sys****sername

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!

 

 

 

 

Top