annotate lighttpd/conf.d/cgi.conf @ 30:e8f3b7994d88

Port to Python 3. All scripts and modules have been ported to Python 3 and appear to work. Some changes to the lighttpd configuration were needed.
author John "Elwin" Edwards
date Tue, 31 Dec 2013 13:36:19 -0500
parents b003235abe75
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
1 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
2 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
3 ## CGI modules
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
4 ## ---------------
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
5 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
6 ## http://www.lighttpd.net/documentation/cgi.html
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
7 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
8 server.modules += ( "mod_cgi" )
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
9
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
10 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
11 ## Plain old CGI handling
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
12 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
13 ## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
14 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
15 cgi.assign = ( ".pl" => "/usr/bin/perl",
30
e8f3b7994d88 Port to Python 3.
John "Elwin" Edwards
parents: 26
diff changeset
16 ".cgi" => "",
26
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
17 ".rb" => "/usr/bin/ruby",
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
18 ".erb" => "/usr/bin/eruby",
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
19 ".py" => "/usr/bin/python" )
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
20
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
21 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
22 ## to get the old cgi-bin behavior of apache
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
23 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
24 ## Note: make sure that mod_alias is loaded if you uncomment the
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
25 ## next line. (see modules.conf)
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
26 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
27 #alias.url += ( "/cgi-bin" => server_root + "/cgi-bin" )
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
28 #$HTTP["url"] =~ "^/cgi-bin" {
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
29 # cgi.assign = ( "" => "" )
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
30 #}
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
31
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
32 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
33 #######################################################################