with lighttpd you can use mod_magnet to include lua scripts