Hello here i have a Howto for limit the apache2 speed.
The first i have tested under Debian Squeeze and i-MSCP Git MasterBuild: 20130107 Codename: Eagle
and than go to
open that and copid this
Limit every user to a max of 50Kb/s on a vhost :
between
so it looks like
save the file and restart your apache2
so that is always with you
got to
put this
here a Example for code
Code
- Limit every user to a max of 10Kb/s on a vhost :
- <Virtualhost *>
- BandwidthModule On
- ForceBandWidthModule On
- Bandwidth all 10240
- MinBandwidth all -1
- Servername www.example.com
- </Virtualhost>
- Limit al internal users (lan) to 1000 kb/s with a minimum of 50kb/s , and
- files greater than 500kb to 50kb/s.
- <Virtualhost *>
- BandwidthModule On
- ForceBandWidthModule On
- Bandwidth all 1024000
- MinBandwidth all 50000
- LargeFileLimit * 500 50000
- Servername www.example.com
- </Virtualhost>
- Limit avi and mpg extensions to 20kb/s.
- <Virtualhost *>
- BandwidthModule On
- ForceBandWidthModule On
- LargeFileLimit .avi 1 20000
- LargeFileLimit .mpg 1 20000
- Servername www.example.com
- </Virtualhost>
- Using it the "right" way, with output filter by mime type (for text)
- to 5kb/s:
- <Virtualhost *>
- BandwidthModule On
- AddOutputFilterByType MOD_BW text/html text/plain
- Bandwidth all 5000
- Servername www.example.com
- </Virtualhost>
Quelle: http://forum.directadmin.com/showthread.php?t=14782
soory for my bad english but I still hope that everyone knows what is meant
MFG
Junk-Host