diff options
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/cgi.conf')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/cgi.conf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/cgi.conf b/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/cgi.conf new file mode 100644 index 000000000..b876f5af6 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/cgi.conf @@ -0,0 +1,33 @@ +####################################################################### +## +## CGI modules +## --------------- +## +## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modcgi +## +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 = ( "" => "" ) +#} + +## +####################################################################### |