-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path30-cgi.conf
35 lines (31 loc) · 1.04 KB
/
30-cgi.conf
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
#######################################################################
##
## 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" => "/opt/bin/perl",
".cgi" => "/opt/bin/perl",
".rb" => "/opt/bin/ruby",
".erb" => "/opt/bin/eruby",
".py" => "/opt/bin/python",
".php" => "/opt/bin/php-cgi" )
##
## 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 = ( "" => "" )
#}
##
#######################################################################