source: client/shared/lib/httpd/10-cgi.conf @ 38788bf

webconsole3
Last change on this file since 38788bf was 6240405, checked in by jm.bardallo <juanmanuel.bardallo@…>, 7 years ago

Version inicial de la consola web 3.0, de momento funcionará paralelamente a la consola web antigua

  • Property mode set to 100644
File size: 748 bytes
Line 
1# /usr/share/doc/lighttpd-doc/cgi.txt
2
3server.modules += ( "mod_cgi" )
4
5#$HTTP["url"] =~ "^/cgi-bin/api/" {
6#alias.url += ( "/cgi-bin/api/" => "/opt/opengnsys/lib/httpd/api/" )
7#$HTTP["url"] =~ "^/cgi-bin/api/" {
8#cgi.assign = ( "exec.php" => "/usr/bin/php")
9#}
10#}
11
12
13$HTTP["url"] =~ "^/cgi-bin/" {
14alias.url += ( "/cgi-bin/api/" => "/opt/opengnsys/lib/httpd/api/" )
15alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
16$HTTP["url"] =~ "^/cgi-bin/" {
17cgi.assign = ( ".sh" => "/bin/sh",
18               "exec.php" => "/usr/bin/php"
19             )
20}
21}
22
23## Warning this represents a security risk, as it allow to execute any file
24## with a .pl/.py even outside of /usr/lib/cgi-bin.
25#
26#cgi.assign      = (
27#       ".pl"  => "/usr/bin/perl",
28#       ".py"  => "/usr/bin/python",
29#)
Note: See TracBrowser for help on using the repository browser.