fcgi is a library implementing Fast CGI.  A simple server is also included.