summaryrefslogtreecommitdiff
path: root/doc/traffic-shaping.txt
blob: 7d16638d61067bb44b78a9e37ebc57570232cb4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
===============
Traffic Shaping
===============

------------
Module: core
------------

:Author: Jan Kneschke
:Date: $Date: 2004/11/03 22:26:05 $
:Revision: $Revision: 1.2 $

:abstract:
  limiting the bandwith usage 
  
.. meta::
  :keywords: lighttpd, bandwidth limit, traffic shaping
  
.. contents:: Table of Contents

Description
===========

Starting with 1.3.8 lighttpd supports limiting the bandwith for a single connection 
or config-context like virtual-host or URL. 

Options
=======

:connection.kbytes-per-second:
  limit the through-put for each single connection to the given 
  limit in kbyte/s
  
  default: 0 (no limit)

:server.kbytes-per-second:
  limit the through-put for all connections to the given limit 
  in kbyte/s
  
  if you want to specify a limit for a special virtual server 
  use: ::
  
    $HTTP["host"] == "www.example.org" {
      server.kbytes-per-second = 128
    }
  
  which will overwrite the default for this host. 
  
  default: 0 (no limit)

Additional Notes
================

Keep in mind that a limit below 32kb/s might actually limit the traffic to 32kb/s. This 
is caused by by the size of the TCP-sendbuffer.