lighttpd mod-proxy-core from trunk

# aptitude install libpcre++-dev pkg-config build-essential libtool automake libglib2.0-dev zlib1g-dev -y
# cd /usr/src/
# svn checkout svn://svn.lighttpd.net/lighttpd/trunk/
# cd trunk
# ./autogen.sh
# ./configure –with-openssl –with-zlib –with-bzip2 –prefix=/opt/lighttpd
# make
# make install

## Startup script
# cd /etc/init.d/
# wget http://redmine.lighttpd.net/attachments/1268/lighttpd2
# nano lighttpd2
change
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=lighttpd2
DESC=lighttpd2
PIDFILE=/var/run/$NAME.pid
DAEMON=/usr/sbin/lighttpd2/lighttpd2
DAEMON_OPTS=”–config /etc/lighttpd2/angel.conf”
to
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/lighttpd/sbin/
NAME=lighttpd2
DESC=lighttpd2
PIDFILE=/var/run/$NAME.pid
DAEMON=/opt/lighttpd/sbin/lighttpd
DAEMON_OPTS=”–config /etc/lighttpd/angel.conf”

# chmod 755 lighttpd2

source:
http://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
http://www.cyberciti.biz/faq/lighttpd-checking-for-gthread-error-and-solution/
http://redmine.lighttpd.net/projects/1/wiki/ScriptsUbuntu