traffic-shaping.txt 1.1 KB

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