annotate lighttpd/conf.d/cgi.conf @ 55:e421ea2519ec

dgamelaunch: define user/group by name instead of UID/GID. The user and group might not be created with the UID and GID expected, so it is better to use names. They can be changed to numeric values after installation.
author John "Elwin" Edwards
date Sun, 11 May 2014 08:32:31 -0700
parents e8f3b7994d88
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 #######################################################################