PDA

View Full Version : Limit vhost bandwidth


pratiknaik
09-08-2006, 03:47 AM
Hi,

I want to limit bandwidth used by each vhost. Is there any way I can do it ?

Thanks,
Pratik

xing
09-08-2006, 10:54 AM
You can limit real-time per-vhost allowed bandwidth via:

http://www.litespeedtech.com/docs/webserver/config/vhostlist/?hilite=virtual,host,bandwidth,

mistwang
09-08-2006, 11:02 AM
Server level Outbound Bandwidth limit must be none-Zero, that's the main switch for bandwidth throttling, each vhost can have its own limit if set.
http://www.litespeedtech.com/docs/webserver/config/security/#outBandwidth

pratiknaik
09-12-2006, 02:48 AM
I'm a little lost here. Let's say I want to limit someone's bandwidth to 1 GB/month. What should be the values of these params ?

Thanks,
Pratik

mistwang
09-12-2006, 09:23 AM
LSWS alone cannot do monthly limit, it only throttle the realtime bandwidth usage, something like 12KB/second that.

For monthly limit, you need to run a bandwidth statistic job to calculate the bandwidth useage based on access log or bandwidth log. CPanel has this kind of feature and LSWS write the bandwidth log in same format as that of Apache mod_bytes_log.