File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / outdated / traffic-shaping.txt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (11 years, 5 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

    1: ===============
    2: Traffic Shaping
    3: ===============
    4: 
    5: ------------
    6: Module: core
    7: ------------
    8: 
    9: :Author: Jan Kneschke
   10: :Date: $Date: 2013/10/14 10:32:48 $
   11: :Revision: $Revision: 1.1.1.1 $
   12: 
   13: :abstract:
   14:   limiting bandwidth usage
   15: 
   16: .. meta::
   17:   :keywords: lighttpd, bandwidth limit, traffic shaping
   18: 
   19: .. contents:: Table of Contents
   20: 
   21: Description
   22: ===========
   23: 
   24: Starting with 1.3.8, lighttpd supports limiting the bandwidth for
   25: a single connection or config context like a virtual host or a URL.
   26: 
   27: Options
   28: =======
   29: 
   30: :connection.kbytes-per-second:
   31:   limit the throughput for each single connection to the given
   32:   limit in kbyte/s
   33: 
   34:   default: 0 (no limit)
   35: 
   36: :server.kbytes-per-second:
   37:   limit the throughput for all connections to the given limit
   38:   in kbyte/s
   39: 
   40:   if you want to specify a limit for a special virtual server
   41:   use: ::
   42: 
   43:     $HTTP["host"] == "www.example.org" {
   44:       server.kbytes-per-second = 128
   45:     }
   46: 
   47:   which will override the default for this host.
   48: 
   49:   default: 0 (no limit)
   50: 
   51: Additional Notes
   52: ================
   53: 
   54: Keep in mind that a limit below 32kb/s might actually limit the traffic to 32kb/s. This
   55: is caused by the size of the TCP send buffer.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>