Add lighttpd configuration files.

This commit is contained in:
John "Elwin" Edwards 2013-10-28 20:33:23 -07:00
parent 89083f037f
commit ef9807cdc6
5 changed files with 718 additions and 0 deletions

33
lighttpd/conf.d/cgi.conf Normal file
View file

@ -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/python",
".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 = ( "" => "" )
#}
##
#######################################################################

View file

@ -0,0 +1,55 @@
#######################################################################
##
## Dirlisting Module
## -------------------
##
## See http://www.lighttpd.net/documentation/dirlisting.html
##
##
## Enabled Directory listing
##
dir-listing.activate = "enable"
##
## Hide dot files from the listing?
## By default they are listed.
##
dir-listing.hide-dotfiles = "disable"
##
## list of regular expressions. Files that match any of the specified
## regular expressions will be excluded from directory listings.
##
dir-listing.exclude = ( "~$" )
##
## set a encoding for the generated directory listing
##
## If you file-system is not using ASCII you have to set the encoding of
## the filenames as they are put into the HTML listing AS IS (with XML
## encoding)
##
dir-listing.encoding = "UTF-8"
##
## Specify the url to an optional CSS file.
##
#dir-listing.external-css = "/dirindex.css"
##
## Include HEADER.txt files above the directory listing.
## You can disable showing the HEADER.txt in the listing.
##
dir-listing.hide-header-file = "disable"
dir-listing.show-header = "disable"
##
## Include README.txt files above the directory listing.
## You can disable showing the README.txt in the listing.
##
dir-listing.hide-readme-file = "disable"
dir-listing.show-readme = "disable"
##
#######################################################################