DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default Apache data transfer limit

Hey guys, quick question - I want to limit the data that apache can transfer on a vhost basis... let me clarify.

I don't want to limit the bandwidth per se, I want to limit the amount of data that can be transfered. And I want to be able to configure this per vhost (each vhost can have different value).

That way I can say this vhost can transfer 200MB/day, and this one 1G/day, etc.

Anyone know of a solution for this? Preliminary google searches only yeild a way to limit the transfer rate (3kbps for this vhost, 10kbps for that).

EDIT: In case it's necessary, it's apache22 on FreeBSD 7.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #2   (View Single Post)  
Old 1st June 2008
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Thanked 3 Times in 3 Posts
Default

Perhaps this article:
Manage Apache Download Speed And Traffic Limits
could be of help after you adapting it to freebsd.
Reply With Quote
  #3   (View Single Post)  
Old 1st June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

That's exactly what I'm looking for, thanks! I will adapt this to FreeBSD. Shouldn't be too bad as it should be APR.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #4   (View Single Post)  
Old 1st June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

In the ports it depends on apache20, I'm using apache22... oh well, I'll dig a bit deeper.

I prefer to use ports for all software installation as it greatly increases the ease of administration of the system, however I might just build this from source like TFA says.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #5   (View Single Post)  
Old 7th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

Alright, I have a resolution, just so everybody knows.

So while the depends for mod_cband showed apache20, I looked at the makefile and it said apache20+, so apache22 will work. Sweet!

However, the primary (and only) site to download from has been down for a good 6 months. The only contact email is also at the site (and while mail may still be working... who knows).

Luckily I managed to find the source .tgz file elsewhere on the net. Downloaded it to my distfiles dir, and a "make install clean" later and I'm up and running with bandwidth limiting. Sweet!

So if anyone else is interested contact me and I'll send along the link to the file (or post it here if enough people are interested). I'm debating if I should email the port maintainer to let them know of the situation.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #6   (View Single Post)  
Old 7th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

Someone from ports@ has graciously added the second link so that this can be made from ports with no problems (however it was also pointed out to me by someone else that it would still work once it errored out on the main site by falling back to a copy of the tgz stored on FreeBSD's FTP server).
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: data stuck in socket? goertzenator FreeBSD General 8 16th February 2009 04:01 PM
transfer rate zomo OpenBSD General 7 26th January 2009 03:00 AM
Have problem transfer large file bigger 1GB bsdme2 FreeBSD General 9 14th January 2009 05:49 AM
Local transfer is slow. maurobottone OpenBSD General 1 10th January 2009 02:12 PM
limit use memory by Apache mfaridi FreeBSD Security 4 8th July 2008 05:59 PM


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick