summaryrefslogtreecommitdiff
path: root/doc/config/conf.d/cgi.conf
blob: e233ed409c9773fb8bbbce6c27cb43bfe27c966a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#######################################################################
##
##  CGI modules
## --------------- 
##
## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modcgi
##
server.modules += ( "mod_cgi" )

##
## Plain old CGI handling
##
## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
##
cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
                               ".cgi" => "/usr/bin/perl",
                               ".rb"  => "/usr/bin/ruby",
                               ".erb" => "/usr/bin/eruby",
                               ".py"  => "/usr/bin/python" )

##
## to get the old cgi-bin behavior of apache
##
## Note: make sure that mod_alias is loaded if you uncomment the
##       next line. (see modules.conf)
##
#alias.url += ( "/cgi-bin" => server_root + "/cgi-bin" )
#$HTTP["url"] =~ "^/cgi-bin" {
#   cgi.assign = ( "" => "" )
#}

##
## require execute permission (+x) on files for CGI scripts
## default: disable
##
#cgi.execute-x-only = "enable"

##
## process X-Sendfile (if present) from CGI response
## https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI#X-Sendfile
## default: disable
##
#cgi.x-sendfile = "enable"
#cgi.x-sendfile-docroot = ( server_root + "/html", server_root + "/static" )

##
## Local Redirect Response optimization
## https://www.ietf.org/rfc/rfc3875 6.2.2 Local Redirect Response optimization
## default: disable
##
#cgi.local-redir = "enable"

##
## permit Upgrade, e.g. Upgrade: websocket
## default: disable
##
#cgi.upgrade = "enable"

##
#######################################################################