The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add to an account's bandwidth?

Discussion in 'General Discussion' started by dev.null, Jun 9, 2005.

  1. dev.null

    dev.null Well-Known Member

    Joined:
    May 27, 2003
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    6
    We are hosting for a large number of accounts and have one in particular that is going to use streaming and several other very large bandwidth consumers (like high-definition photos).

    We are setting up a php redirector in their site so that when someone requests one of those items they are redirected to another large bandwidth provider that will hold these huge files. This way it cuts down on the amount of constant bandwidth being eaten up on our local server's connection.

    When we do the redirect in php we also want to add the download size of the large file they are being redirected to somewhere to that site's bandwidth counting so that they are accurately charged for the total amount of bandwidth they use accross our local server and our server with the large bandwidth pipe, not just the local server.

    Where/how can we add in that amount? I see the popbytes and smtpbytes files in the apache domlogs, but there is also a "offset" file for each and we don't want to stick numbers on the tail end of the bytes logs and mess up the offsets.

    Anyone know how to do it?

    Thanks in advance and happy hosting.
     
  2. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Check if use of mod_proxy helps.

    mod_gzip + mod_proxy may not work on urls with query string as mod_gzip needs patching for that to work.

    Anup
     
  3. dev.null

    dev.null Well-Known Member

    Joined:
    May 27, 2003
    Messages:
    75
    Likes Received:
    1
    Trophy Points:
    6
    The problem with mod_proxy is we aren't actually proxying the large downloads. That would require our server to pull the file down from the large-bandwidth server, then turn around and send the same data back out across the same low-bandwidth connection in came in on down to the end user.

    The whole point of what we are trying to do is to move the large bandwidth files to another large-bandwidth source as to not tie up the bandwidth on our smaller bandwidth hosting server. To proxy would double the load on the small bandwidth source.

    Thanks for your time and reply.
     
Loading...

Share This Page