For Lighttpd you can follow these instructions. Within lighttpd.conf make sure "mod_fastcgi" is active within server.modules. Then, within your $HTTP["host"] directive, configure your fastcgi script like the following: