Posts Tagged ‘lighttpd’

lighttpd-1.2.28 with mod_h264 support deb package

Thursday, September 8th, 2011

Hello,

I’ve precompiled a Lighttpd 1.2.28 Debian’s version with mod_h264 (version 2) streaming module support on Squeeze amd64 system.

Ready for use, grab from here

Usage (lighttpd.conf):

server.modules = (
“mod_access”,
“mod_alias”,
“mod_compress”,
“mod_redirect”,
#       “mod_rewrite”,
  “mod_h264_streaming”,
)
h264-streaming.extensions = ( “.mp4″ )

Tested on Debian Squeeze, using it on production system.

 

lighttpd writev

Wednesday, September 1st, 2010

I was suffering from performance problem on lighttpd running a http-progressive flv media server on a Sata Seagate Baracuda drive (24×7 server edition).
The bandwidth didn’t pass the 150-160mbit limit and the disk utilization was on 99.9% const.
I found a suggestion on some forum to change the network backend to ‘writev’ (which is good for large files serving) and walla the bandwidth just jumped up by 150% to 220-240mbit/sec.

writev

While the disk utilization (checked by iostat) is around 81-90% only.

To set ‘writev’ on lighttpd, edit lighttpd.conf and put this:

server.network-backend = “writev”

again this might not help everybody, but it worth a test.

lighttpd dir-generator-plus.php

Friday, April 30th, 2010

I’ve patched a little bit the wonderful dir list generator from Evan Fosmark, i’ve added ability to add hidden files list which you would like to hide from being displayed.

For instance you don’t want to show the dir-generator-plus.php file and the included folder images directory; I also include footers sometimes so i prefer to them as well.

download it dir-generator-plus.php

The usage is simple, edit your lighttpd.conf file at the host area:

dir-listing.activate = "enable"

index-file.names = ( "/dir-generator.php" )

for more info about the usage of Lighttpd dir listing please visit the lighttpd wiki

lighttpd burst aka “faststart” patch

Tuesday, September 1st, 2009

I’ve created this patch for Lighttpd 1.4.19 (tested and compiled on Debian Lenny amd64). This patch adds configuration option:

‘connection.burst’

You should use it only with:

‘connection.kbytes-per-second’ setting.

Example:
connection.kbytes-per-second = 100
connection.burst        = 50

In this example user will get 50 seconds fast-start and will be throttled down to 100KBp/s after fast start “burst” download of first 50sec.

It’s very useful for letting fast speed for downloading small files or for usage for FLV streaming when you like to give fast buffer burst speed and then throttle down.

I wrote this patch after looked long time in Google and had unfortune expirience with LARTC ‘s tools.

I hope this will be useful for you, for any comments, questions or bugs please write me a note.

Download:

http://www.debian.co.il/2009/09/lighttpd-burst-aka-faststart-patch/lighttpd-1419-burst/

Installation on Debian:

cd /usr/local/src/

apt-get source lighttpd

cd lighttpd-1.4.19

wget http://www.debian.co.il/wp-content/uploads/2009/09/lighttpd-1419-burst.patch

patch -p0 < lighttpd-1419-burst.patch

now compile and configure:

./configure

make

make install