X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=inline;f=etc%2Flighttpd%2Flighttpd.conf;fp=etc%2Flighttpd%2Flighttpd.conf;h=f045f1172e869d3e54c4825589f639db53c1d0df;hb=b51e062dca9319e2d9fb48af845815bdbd50a5cc;hp=0000000000000000000000000000000000000000;hpb=bd3dbc04ff2effb9584155c810c64e5e11c95f41;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/lighttpd/lighttpd.conf b/etc/lighttpd/lighttpd.conf new file mode 100644 index 0000000..f045f11 --- /dev/null +++ b/etc/lighttpd/lighttpd.conf @@ -0,0 +1,73 @@ +# Debian lighttpd configuration file +# + +# Chroot into our root-dir +#server.chroot = "/data/www" + +#var.root-dir = "" +var.root-dir = "/data/www" +var.conf-dir = "/etc/lighttpd" +var.fcgi-dir = var.root-dir + "/var/fcgi" + +## modules to load +server.modules = ( + "mod_access", + "mod_alias", + "mod_accesslog", + "mod_rewrite", + "mod_redirect", + "mod_evhost", + "mod_cgi", + "mod_fastcgi", + "mod_auth", +) + +# Set a default catch-all document root, which should never be used. +server.document-root = var.root-dir + "/default/htdocs" + +## where to upload files to, purged daily. +server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) + +## where to send error-messages to +server.errorlog = var.root-dir + "/default/logs/error.log" + +## files to check for if .../ is requested +index-file.names = ( "index.php", "index.html" ) + +#### accesslog module +accesslog.filename = var.root-dir + "/default/logs/access.log" + +## deny access the file-extensions +# +# ~ is for backupfiles from vi, emacs, joe, ... +# .inc is often used for code includes which should in general not be part +# of the document-root +url.access-deny = ( "~", ".inc" ) + +## +# which extensions should not be handle via static-file transfer +# +# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi +static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) + +## Use ipv6 only if available. +server.use-ipv6 = "disable" + +## to help the rc.scripts +server.pid-file = "/var/run/lighttpd.pid" + +## virtual directory listings +dir-listing.encoding = "utf-8" +# Disable dir-listing by default +server.dir-listing = "disable" + +# Don't run as root +server.username = "www-data" +server.groupname = "www-data" + +#### external configuration files +## mimetype mapping +include_shell var.conf-dir + "/scripts/create-mime.assign.pl" + +## load vhosts +include_shell var.conf-dir + "/scripts/include-vhosts.pl"