RE: Make client connections speed lower?
11-24-2014, 11:43 PM
(This post was last modified: 11-25-2014, 05:11 AM by Tango.)
Well, I have the answer:
How to rate limit server UPLOAD speed (so, the speed the web visitor use)
First of all, lets activate apache module called mod_ratelimit: (that is installed by default)
Edit /etc/httpd/conf.modules.d/00-base.conf
and uncomment the line:
Then, just add the following to CUSTOM ENTRY (Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry):
Where:
"/downloads" indicates the domain folder. Eg: "/" for all locations inside client root.
"SetEnv rate-limit 350" indicates speed in KB/s.
Using apache 2.4, and CentOS 7.
If you use Windows, you need to fix the paths.
PS: This is just for HTTP, SQL and FTP will not change their speed.
How to rate limit server UPLOAD speed (so, the speed the web visitor use)
First of all, lets activate apache module called mod_ratelimit: (that is installed by default)
Edit /etc/httpd/conf.modules.d/00-base.conf
and uncomment the line:
Code:
ratelimit_module modules/mod_ratelimit.so
Then, just add the following to CUSTOM ENTRY (Module Admin>Apache Config>Override a Virtual Host Setting>[select domain]>Custom Entry):
Code:
<IfModule mod_ratelimit.c>
<Location /downloads>
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 350
</Location>
</IfModule>
Where:
"/downloads" indicates the domain folder. Eg: "/" for all locations inside client root.
"SetEnv rate-limit 350" indicates speed in KB/s.
Using apache 2.4, and CentOS 7.
If you use Windows, you need to fix the paths.
PS: This is just for HTTP, SQL and FTP will not change their speed.