summaryrefslogtreecommitdiff
path: root/package/lighttpd/files/conf.d/cgi.conf
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-02 18:42:33 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-02 18:42:33 +0100
commit62cf4f1ab7f29f156dd399516e2301dc78fc9bb6 (patch)
treef3481a17dbdf7a5bb659efe0a40474873cf03092 /package/lighttpd/files/conf.d/cgi.conf
parent52a49601ba47b77d93d4856f2ee01e55755905f1 (diff)
update mpdbox package collection, new lighttpd, kernel, php, mpd, mpc, libmpd, ffmpeg
Diffstat (limited to 'package/lighttpd/files/conf.d/cgi.conf')
-rw-r--r--package/lighttpd/files/conf.d/cgi.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/lighttpd/files/conf.d/cgi.conf b/package/lighttpd/files/conf.d/cgi.conf
new file mode 100644
index 000000000..ed2779999
--- /dev/null
+++ b/package/lighttpd/files/conf.d/cgi.conf
@@ -0,0 +1,33 @@
+#######################################################################
+##
+## CGI modules
+## ---------------
+##
+## http://www.lighttpd.net/documentation/cgi.html
+##
+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 = ( "" => "" )
+#}
+
+##
+#######################################################################