xref: /lighttpd1.4/doc/config/conf.d/cgi.conf (revision 63a578fe)
1#######################################################################
2##
3##  CGI modules
4## ---------------
5##
6## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modcgi
7##
8server.modules += ( "mod_cgi" )
9
10##
11## Plain old CGI handling
12##
13## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
14##
15cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
16                               ".cgi" => "/usr/bin/perl",
17                               ".rb"  => "/usr/bin/ruby",
18                               ".erb" => "/usr/bin/eruby",
19                               ".py"  => "/usr/bin/python" )
20
21##
22## to get the old cgi-bin behavior of apache
23##
24## Note: make sure that mod_alias is loaded if you uncomment the
25##       next line. (see modules.conf)
26##
27#alias.url += ( "/cgi-bin" => server_root + "/cgi-bin" )
28#$HTTP["url"] =~ "^/cgi-bin" {
29#   cgi.assign = ( "" => "" )
30#}
31
32##
33## require execute permission (+x) on files for CGI scripts
34## default: disable
35##
36#cgi.execute-x-only = "enable"
37
38##
39## process X-Sendfile (if present) from CGI response
40## https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI#X-Sendfile
41## default: disable
42##
43#cgi.x-sendfile = "enable"
44#cgi.x-sendfile-docroot = ( server_root + "/html", server_root + "/static" )
45
46##
47## Local Redirect Response optimization
48## https://www.ietf.org/rfc/rfc3875 6.2.2 Local Redirect Response optimization
49## default: disable
50##
51#cgi.local-redir = "enable"
52
53##
54## permit Upgrade, e.g. Upgrade: websocket
55## default: disable
56##
57#cgi.upgrade = "enable"
58
59##
60#######################################################################
61