The default CGI configuration is as follows:
$HTTP["url"] =~ "^/cgi-bin/" { cgi.assign = ( "" => "" ) }
i.e. only binary files in the cgi-bin directory under the document root will be executed. To enable cgi directories for each user, add
$HTTP["url"] =~ "^(/~[^/]+)?/cgi-bin/" { cgi.assign = ("" => "") }
in the lighttpd configuration file.
source share