Line | |
---|
1 | # /usr/share/doc/lighttpd-doc/cgi.txt |
---|
2 | |
---|
3 | server.modules += ( "mod_cgi" ) |
---|
4 | |
---|
5 | $HTTP["url"] =~ "^/cgi-bin/" { |
---|
6 | alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" ) |
---|
7 | $HTTP["url"] =~ "^/cgi-bin/" { |
---|
8 | cgi.assign = ( ".sh" => "/bin/sh" ) |
---|
9 | } |
---|
10 | } |
---|
11 | |
---|
12 | ## Warning this represents a security risk, as it allow to execute any file |
---|
13 | ## with a .pl/.py even outside of /usr/lib/cgi-bin. |
---|
14 | # |
---|
15 | #cgi.assign = ( |
---|
16 | # ".pl" => "/usr/bin/perl", |
---|
17 | # ".py" => "/usr/bin/python", |
---|
18 | #) |
---|
Note: See
TracBrowser
for help on using the repository browser.