Updated to work with latest lighttpd