![]() |
|
Make client connections speed lower? - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: Make client connections speed lower? (/showthread.php?tid=658) |
Make client connections speed lower? - Tango - 11-22-2014 Hi! I was looking this weird search on Google, but no useful answers... Is there a way to SLOW DOWN a client connection? I mean, slow down every http and/or sql request made to that client... My little brother uses a LOT of bandwidth, and I want to slow down the connections... Is there a way? Google just returns the opposite: how to speed up!
RE: Make client connections speed lower? - Me.B - 11-22-2014 You can't in current zpanel setup. But if you have a dedicated server, you can setup openVZ or KVM to create a linux virtual machine where you can allocate res sources like 1 core & 512 MB RAM instead of allowing him to use all ram ;-). M B RE: Make client connections speed lower? - Tango - 11-22-2014 Hi, thanks for your answer... yes, I have a dedicated with 16 gigs of ram, but no openVZ or KVM installed... The server is fully working, I will test on other one... Thanks! RE: Make client connections speed lower? - Tango - 11-24-2014 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.soThen, 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. RE: Make client connections speed lower? - Me.B - 11-25-2014 Ok intersting We will check this for sure. |