This is an old revision of the document!
Virtual Host-Level Bandwidth Throttling
LiteSpeed Web Server version 5.0 introduces virtual host-level bandwidth throttling. This can be thought of as an extension of LSWS's Per Client Throttling settings, which allow you to control the amount of stress a single IP can put on your server. Virtual host-level bandwidth throttling allows you to customize bandwidth throttling, in Apache configs, for particular virtual hosts. This allows you to set up stricter settings for sites that you know are targets or more lenient settings for sites that might require a lot of bandwidth going to one IP. (This has been available for some time in vhosts with LSWS-native configs.) It also allows for throttling bandwidth by file type and size.
Configuraton
LSWS's implementation of this bandwidth throttling follows syntax similar to that used by Apache’s mod_bw. Bandwidth throttling directives can only be placed in virtual host configuration file, not an .htaccess file.
Directives
BandWidth
BandWidth [Origin] [Speed in bytes/s]
The BandWidth directive control the amount of bandwidth allotted to specific users. It takes 2 parameters:
Origin
is the origin of the connections. It can a single IP address, a set of IP addresses, a network mask, or “all”.Speed
indicates the total speed available to theOrigin
. IfSpeed
is0
, there is no limit.