Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Lets say I subdomain called This is on a dedicated server and I can change any configuration. Server runs Apache/2.2.3 (CentOS)

How do i restrict all file downloads to just 10Kbps for every file downloaded from the webserver? What is the easiest solution to implement this for the entire subdomain?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

I would go for mod_bw:

Example: Limit every user to a max of 10Kb/s on a vhost :

<Virtualhost *>
  BandwidthModule On
  ForceBandWidthModule On
  Bandwidth all 10240
  MinBandwidth all -1
share|improve this answer
The documentation says: ForceBandWidthModule [On|Off] By default, the mod wont catch every request. If you enable it, every request will be processed by the mod. – Denilson Sá Feb 24 '10 at 19:18
Does not work with AJP. – Peter Rader Dec 13 '13 at 14:36

mod_cband should fix this for you.

See this nice tutorial:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.