summaryrefslogtreecommitdiffstats
path: root/client/shared/lib/httpd/10-cgi.conf
blob: e6f4c85cdd1eb2b5d6c658aea46466772fc1658b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# /usr/share/doc/lighttpd-doc/cgi.txt

server.modules += ( "mod_cgi" )

$HTTP["url"] =~ "^/cgi-bin/" {
alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
$HTTP["url"] =~ "^/cgi-bin/" {
cgi.assign = ( ".sh" => "/bin/sh" )
}
}

## Warning this represents a security risk, as it allow to execute any file
## with a .pl/.py even outside of /usr/lib/cgi-bin.
#
#cgi.assign      = (
#	".pl"  => "/usr/bin/perl",
#	".py"  => "/usr/bin/python",
#)