## 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"
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
+ ".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
## virtual directory listings
#dir-listing.activate = "enable"
+## select encoding for directory listings
+#dir-listing.encoding = "utf-8"
## enable debugging
#debug.log-request-header = "enable"
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1
+
+## include configuration snippets, usually provided by packages
+include_shell "find /etc/lighttpd/conf.d -maxdepth 1 -name '*.conf' -exec cat {} \;"
+
# ToDo: put that in a common module to share with apache
file { 'default_lighttpd_index':
- path => '/srv/www/lighttpd/index.html',
+ path => '/var/www/lighttpd/index.html',
ensure => file,
content => template('lighttpd/default/default_index.erb'),
owner => root, group => 0, mode => 0644;