Limiting Vhost Traffic

Discussion in 'Apache' started by mcgurrin, Jun 10, 2011.

  1. #1
    I am looking for suggestions on how to easily cap apache vhost traffic so that requests after a certain amount of bandwidth has been used are denied.

    Thanks.
     
    mcgurrin, Jun 10, 2011 IP
  2. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #2
    You dont need to cap bandwidth usage, rather than you might cap apache process limit.

    Just edit "/usr/local/apache/conf/includes/pre_main_global.conf"

    And add this line :

     
    stardust.x7, Jun 12, 2011 IP
  3. mcgurrin

    mcgurrin Greenhorn

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    I am actually looking to cap bandwidth usage (in GB) for a project not number of simultaneous connections/processes, etc. I am looking to maybe host some sites for other people on a server and want to cap the amount of bandwidth each of those sites can use, I have heard of something called mod bandwidth, would that work and how easy is it to use? Thanks.
     
    mcgurrin, Jun 13, 2011 IP
  4. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #4
    mod_bandwidth does not have any connection with this. You can cap the total bandwidth with root cpanel only.
     
    stardust.x7, Jun 15, 2011 IP
  5. mcgurrin

    mcgurrin Greenhorn

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    this would be a dedicated server though I would prefer to not use cpanel but I might if I have to, is there and free way to do this with root access, I think virtualmin might but I have not had the best luck with virtualmin.
     
    mcgurrin, Jun 17, 2011 IP