Difference between revisions of "Lighttpd"

From Alessandro's Wiki
Line 1: Line 1:


= core =
= core =
Line 34: Line 33:
* in lighttpd.conf
* in lighttpd.conf
  server.network-backend = "linux-aio-sendfile"
  server.network-backend = "linux-aio-sendfile"
== sec download ==
flv-streaming.extensions = ( ".flv" )
secdownload.secret          = "password"
secdownload.document-root  = "/export/mediaroot/auth/"
secdownload.uri-prefix      = "/dl/"
secdownload.timeout        = 120
* php then..
<uri-prefix>/<token>/<timestamp-in-hex>/<rel-path>

Revision as of 20:47, 28 July 2011

core

Keep-Alive

Disabling keep-alive might help your server if you suffer from a large number of open file descriptors.

  • defaults:
server.max-keep-alive-requests = 128
server.max-keep-alive-idle = 30
server.max-read-idle = 60
server.max-write-idle = 360
  • less...
server.max-keep-alive-requests = 8
server.max-keep-alive-idle = 8
  • Disabling keep-alive
server.max-keep-alive-requests = 0


modules

x264-streaming

aio-sendfile

./configure --with-openssl --with-linux-aio
  • in lighttpd.conf
server.network-backend = "linux-aio-sendfile"

sec download

flv-streaming.extensions = ( ".flv" )
secdownload.secret          = "password"
secdownload.document-root   = "/export/mediaroot/auth/"
secdownload.uri-prefix      = "/dl/"
secdownload.timeout         = 120
  • php then..
<uri-prefix>/<token>/<timestamp-in-hex>/<rel-path>