Have you ever try mod_limitipconn?
Announcement
Collapse
No announcement yet.
Cloudlinux cant limit file downloading request ?
Collapse
X
-
Don bother with mod_limitipconn / etc...
Install nginx, varnish, litespeed... etc instead. They can handle 100x number of connections apache can. The issue will go away by itself.
And btw, if you really want to handle it with LVE -- change modhostinglimits.conf, and set AllowedHandlers to a wildcard -- then EVERYTHING, including static files will be in LVE.
Comment
-
Match all requests
AllowedHandlers *
It will put static pages in LVE as well.
And no -- it will not limit bandwidth, but it will limit connections and disk IO for static pages.
Comment
-
@Igor
Thank you for the answer(s).
The problem is that in cPanel you can limit bandwidth on a monthly basis. But if you have a limit for an account at 50 GB on monthly basis, the site can use it all in one day.
We have had a number of sites having "static" files such as swf, jpgs etc and consumed 10-20 GB in a couple of hours. Very popular content that is getting linked to and sometimes also embedded fr om news sites or other big sites (fb accounts).
Yes, we can stop a lot of this other ways and force the delivery of the content to go via php-page insted of directly etc, but the client do not want us to do that, since getting the info out is what they are aiming at.
mod_bw (mod_bandwidth) does unfortunately not work when we have tested as others already have stated in this thread.
If you check the cpanel forum about limiting bandwidth you will find loads of cPanel/WHM users that wants to have this ability to just lim it the bandwidth per sec/hour/day for different accounts.
If you had that part in your software, we would be happy to buy it for a number of our servers, and so would a number of others, I guess.
So see it as a business opportunity. If you are able to add it rather easily, just do it and you will get more customers
Comment
-
Was some time ago we tested, but we tested on several occasions to use mod_bw and it simply did not limit the traffic.
In the cpanel forum there are also others with the same experience (but it is some time ago).
We used:
/scripts/setbwlimit --domain=theactualdomainname.com --limit=1028000
Tried different limits but nothing worked.
Tested on different servers with different setup and did not get it to work on any of them at that time.
Will test again when i get some more time over (later today or tomorrow) to see if there has been any updates that has solved the issue from cpanel.
Comment
Comment