3

Lets say I subdomain called largefiles.domain.com 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?

2 Answers 2

5

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
  Servername www.example.com
</Virtualhost>
2
  • 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. Feb 24, 2010 at 19:18
  • Does not work with AJP.
    – Grim
    Dec 13, 2013 at 14:36
0

mod_cband should fix this for you.

See this nice tutorial: http://www.howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .