Skip to content
Ligustah edited this page Oct 3, 2011 · 2 revisions

To have Lighttpd server .croc files via FastCGI you need to create a .conf file in /etc/lighttpd/conf-enabled/ named whatever you prefer. You will also need to adjust the bin-path attribute.

## FastCGI programs have the same functionality as CGI programs,
## but are considerably faster through lower interpreter startup
## time and socketed communication
##
## Documentation: /usr/share/doc/lighttpd-doc/fastcgi.txt.gz
##                http://www.lighttpd.net/documentation/fastcgi.html

server.modules   += ( "mod_fastcgi" )

fastcgi.server    = (
		".croc" =>
		((
				"bin-path" => "/var/www/cgi-bin/croc-fcgi",
				"socket" => "/tmp/croc.socket" + var.PID,
				"max-procs" => 1,
		))
)

Restart lighttpd and it will serve .croc files.

Clone this wiki locally