Results 1 to 3 of 3
  1. #1

    Limiting bandwidth in Virtual Hosts in apache


    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!

  2. #2
    Join Date
    Jul 2002
    San Luis Obispo, CA
    mod_throttle does not lose anything if you specify

    ThrottleRuntimeFile /etc/httpd/conf/throttle.runtime

    Nick Twaddell
    WebSpace Solutions - Custom E-Solutions
    Fast, Reliable, Affordable Web Hosting

  3. #3
    Join Date
    Feb 2004

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts