1=== 2CGI 3=== 4 5--------------- 6Module: mod_cgi 7--------------- 8 9:Author: Jan Kneschke 10:Date: $Date: 2004/11/03 22:26:05 $ 11:Revision: $Revision: 1.2 $ 12 13:abstract: 14 The cgi module provides a CGI-conforming interface. 15 16.. meta:: 17 :keywords: lighttpd, cgi 18 19.. contents:: Table of Contents 20 21Description 22=========== 23 24CGI programs allow you to enhance the functionality of the server in a very 25straight and simple way.. 26 27Options 28======= 29 30cgi.assign 31 32 file-extensions that are handled by a CGI program 33 34 e.g.: :: 35 36 cgi.assign = ( ".pl" => "/usr/bin/perl", 37 ".cgi" => "/usr/bin/perl" ) 38 39Examples 40======== 41 42To setup a executable which doesn't need the help of a external program you 43just don't specify a handler for the extension. :: 44 45 cgi.assign = ( ".sh" => "" ) 46 47If the file has no extension keep in mind that lighttpd matches not the 48extension itself but the right part of the URL: :: 49 50 cgi.assign = ( "/testfile" => "" ) 51