Make client connections speed lower?
#4
RE: Make client connections speed lower?
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:

Code:
#LoadModule 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.
Reply


Messages In This Thread
Make client connections speed lower? - by Tango - 11-22-2014, 03:08 AM
RE: Make client connections speed lower? - by Tango - 11-24-2014, 11:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Update extplorer and panels client poseidon97 0 4 ,854 02-06-2020, 11:40 PM
Last Post: poseidon97
confused to make an decision please help nscloud 4 11 ,469 09-14-2018, 09:52 AM
Last Post: wormsunited
Change client's data folder problem dimnas 1 6 ,729 02-14-2018, 03:49 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)