Lighttpd
From Alessandro's Wiki
Revision as of 20:47, 28 July 2011 by Porcelinux (talk | contribs)
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>