changeset 74:900da50ee11c

Merge lighttpd configuration into one include file. The lighttpd configuration was previously spread across several files which were intended to overwrite the defaults. They often became outdated. Now all customization is in lighttpd/rlgallery.conf, which should be included at the end of whatever main lighttpd configuration file is in use. It should require minimal updates for new lighttpd versions or distribution changes.
author John "Elwin" Edwards
date Wed, 28 Dec 2016 13:12:04 -0500
parents ac8258c1b505
children d8720dbc16bb
files lighttpd/conf.d/access_log.conf lighttpd/conf.d/cgi.conf lighttpd/conf.d/debug.conf lighttpd/conf.d/dirlisting.conf lighttpd/conf.d/mime.conf lighttpd/lighttpd.conf lighttpd/modules.conf lighttpd/rlgallery.conf
diffstat 8 files changed, 37 insertions(+), 888 deletions(-) [+]
line wrap: on
line diff
--- a/lighttpd/conf.d/access_log.conf	Wed Dec 28 10:20:30 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-#######################################################################
-##
-## Corresponding documentation:
-##
-## http://www.lighttpd.net/documentation/access.html
-##
-server.modules += ( "mod_accesslog" )
-
-##
-## Default access log.
-##
-accesslog.filename          = log_root + "/access.log"
-
-##
-## The default format produces CLF compatible output.
-## For available parameters see access.txt 
-##
-#accesslog.format = "%h %l %u %t \"%r\" %b %>s \"%{User-Agent}i\" \"%{Referer}i\""
-
-##
-## If you want to log to syslog you have to unset the 
-## accesslog.use-syslog setting and uncomment the next line.
-##
-#accesslog.use-syslog       = "enable"
-
-#
-#######################################################################
--- a/lighttpd/conf.d/cgi.conf	Wed Dec 28 10:20:30 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-#######################################################################
-##
-##  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" => "",
-                               ".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 = ( "" => "" )
-#}
-
-##
-#######################################################################
--- a/lighttpd/conf.d/debug.conf	Wed Dec 28 10:20:30 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-#######################################################################
-##
-##  Debug options
-## ---------------
-##
-## Enable those options for debugging the behavior
-##
-## The settings can be set per location/vhost.
-## 
-
-## 
-## log-request-handling allows you to track the request
-## handing inside lighttpd. 
-##
-#debug.log-request-handling        = "enable"
-
-## 
-## log all request headers. 
-##
-#debug.log-request-header          = "enable"
-
-## 
-## similar to log-request-header.
-## but only logs if we encountered an error.
-## (return codes 400 and 5xx)
-##
-#debug.log-request-header-on-error = "enable"
-
-## 
-## log the header we send out to the client.
-##
-#debug.log-response-header         = "enable"
-
-## 
-## log if a file wasnt found in the error log.
-##
-#debug.log-file-not-found          = "enable"
-
-## 
-## debug conditionals handling
-##
-#debug.log-condition-handling      = "enable"
-
-#
-#######################################################################
-
-
--- a/lighttpd/conf.d/dirlisting.conf	Wed Dec 28 10:20:30 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-#######################################################################
-##
-##  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"
-
-##
-#######################################################################
--- a/lighttpd/conf.d/mime.conf	Wed Dec 28 10:20:30 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-#######################################################################
-##
-##  MimeType handling
-## -------------------
-##
-## http://www.lighttpd.net/documentation/configuration.html#mimetypes
-##
-## Use the "Content-Type" extended attribute to obtain mime type if
-## possible
-##
-mimetype.use-xattr        = "disable"
-
-##
-## mimetype mapping
-##
-mimetype.assign             = (
-  ".pdf"          =>      "application/pdf",
-  ".sig"          =>      "application/pgp-signature",
-  ".spl"          =>      "application/futuresplash",
-  ".class"        =>      "application/octet-stream",
-  ".ps"           =>      "application/postscript",
-  ".torrent"      =>      "application/x-bittorrent",
-  ".dvi"          =>      "application/x-dvi",
-  ".gz"           =>      "application/x-gzip",
-  ".pac"          =>      "application/x-ns-proxy-autoconfig",
-  ".swf"          =>      "application/x-shockwave-flash",
-  ".tar.gz"       =>      "application/x-tgz",
-  ".tgz"          =>      "application/x-tgz",
-  ".tar"          =>      "application/x-tar",
-  ".zip"          =>      "application/zip",
-  ".mp3"          =>      "audio/mpeg",
-  ".m3u"          =>      "audio/x-mpegurl",
-  ".wma"          =>      "audio/x-ms-wma",
-  ".wax"          =>      "audio/x-ms-wax",
-  ".ogg"          =>      "application/ogg",
-  ".wav"          =>      "audio/x-wav",
-  ".gif"          =>      "image/gif",
-  ".jpg"          =>      "image/jpeg",
-  ".jpeg"         =>      "image/jpeg",
-  ".png"          =>      "image/png",
-  ".svg"          =>      "image/svg+xml",
-  ".xbm"          =>      "image/x-xbitmap",
-  ".xpm"          =>      "image/x-xpixmap",
-  ".xwd"          =>      "image/x-xwindowdump",
-  ".css"          =>      "text/css",
-  ".html"         =>      "text/html",
-  ".htm"          =>      "text/html",
-  ".js"           =>      "text/javascript",
-  ".asc"          =>      "text/plain",
-  ".c"            =>      "text/plain",
-  ".cpp"          =>      "text/plain",
-  ".log"          =>      "text/plain",
-  ".conf"         =>      "text/plain",
-  ".text"         =>      "text/plain",
-  ".txt"          =>      "text/plain",
-  ".spec"         =>      "text/plain",
-  ".dtd"          =>      "text/xml",
-  ".xml"          =>      "text/xml",
-  ".mpeg"         =>      "video/mpeg",
-  ".mpg"          =>      "video/mpeg",
-  ".mov"          =>      "video/quicktime",
-  ".qt"           =>      "video/quicktime",
-  ".avi"          =>      "video/x-msvideo",
-  ".asf"          =>      "video/x-ms-asf",
-  ".asx"          =>      "video/x-ms-asf",
-  ".wmv"          =>      "video/x-ms-wmv",
-  ".bz2"          =>      "application/x-bzip",
-  ".tbz"          =>      "application/x-bzip-compressed-tar",
-  ".tar.bz2"      =>      "application/x-bzip-compressed-tar",
-  ".rpm"          =>      "application/x-rpm",
-  ".json"         =>      "application/json",