summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-01-23 17:36:21 +0000
committermh <mh@immerda.ch>2009-01-23 17:36:21 +0000
commit0e42c5eb099b13db28cf921ca50ef4fab6cd0f30 (patch)
treecaab63b365707cb82a48d7b81747cc5212143efc
parent024e73ce96acf59367f5d54aee43cc66298b583d (diff)
updated lighttpd config to new style
-rw-r--r--files/web/lighttpd.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/files/web/lighttpd.conf b/files/web/lighttpd.conf
index 2f77c97..2315562 100644
--- a/files/web/lighttpd.conf
+++ b/files/web/lighttpd.conf
@@ -37,7 +37,7 @@ server.modules = (
## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
-server.document-root = "/srv/www/lighttpd/"
+server.document-root = "/var/www/lighttpd/"
## where to send error-messages to
server.errorlog = "/var/log/lighttpd/error.log"
@@ -73,6 +73,7 @@ mimetype.assign = (
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
+ ".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
@@ -174,6 +175,8 @@ server.pid-file = "/var/run/lighttpd.pid"
## virtual directory listings
#dir-listing.activate = "enable"
+## select encoding for directory listings
+#dir-listing.encoding = "utf-8"
## enable debugging
#debug.log-request-header = "enable"
@@ -321,6 +324,9 @@ server.groupname = "lighttpd"
#include "lighttpd-inc.conf"
include "lighttpd-gitweb.conf"
+# include configuration snippets, usually provided by packages
+include_shell "find /etc/lighttpd/conf.d -maxdepth 1 -name '*.conf' -exec cat {} \;"
+
#### include_shell
#include_shell "echo var.a=1"
## the above is same as: