If you want to limit the download speed for each connection, regardless of the management of totals or the execution of smaller controls, the best way to handle this is to use Apache's own mod_ratelimit .
This example restricts everything under /files to 1Mbit/s ...
<Location /files> SetOutputFilter RATE_LIMIT SetEnv rate-limit 1000 </Location>
I have researched and tried other methods and modules, and in this particular case mod_ratelimit compresses the easiest way to do this.
Download speed limiting and throttling for Apache 2.4 .
source share