Apache Limit download+IP speed for/from IP?
I have an issue with Apache2
Users are downloading files maxing out the servers network speed. How am I able to limit the download/upload speed of apache2 preferably for each individual user or limit it on an IP bases for example if I was uploading to 1.1.1.1 the connection would cap out at 100Mbps but then if 2.2.2.2 was to download the same file it would have another 100Mbps speed limit totaling 200Mbps.
-
I have done the following which limits the speed per file but a user can download multiple files from the server to bypass it. yum install ea-apache24-mod_env installed ratelimit through easyapache Created /etc/apache2/conf.d/userdata/350_mod_ratelimit.conf with SetOutputFilter RATE_LIMIT SetEnv rate-limit 10240 SetEnv rate-initial-burst 20480
To set global uplaod limit However does this also include download if a script was to download a file through apache2 from another server?0 -
You can do it with Litespeed Per Client Throttling feature. However, no limits can be defined for individual ip addresses. The limit is applied globally to all ip addresses. 0 -
You can do it with Litespeed Per Client Throttling feature. However, no limits can be defined for individual ip addresses. The limit is applied globally to all ip addresses.
I don't have Litespeed unfortunately due to the costs. I do have CloudLinux if I can do it on a user basis but not too sure how (previous message)0
Please sign in to leave a comment.
Comments
6 comments