diff --git a/rootfs/usr/local/share/template-files/config/lighttpd/lighttpd.conf b/rootfs/usr/local/share/template-files/config/lighttpd/lighttpd.conf index 91497f7..eb329d9 100644 --- a/rootfs/usr/local/share/template-files/config/lighttpd/lighttpd.conf +++ b/rootfs/usr/local/share/template-files/config/lighttpd/lighttpd.conf @@ -4,21 +4,7 @@ var.basedir = "/var/www/localhost" var.statedir = "/var/lib/lighttpd" -var.logdir = "/tmp" - -server.username = "lighttpd" -server.groupname = "lighttpd" - -server.port = 80 -server.document-root = "/data/htdocs/www" -server.pid-file = "/tmp/lighttpd.pid" - -server.errorlog = "/tmp/lighttpd.err.log" - -server.tag = "lighttpd" -server.follow-symlink = "enable" -server.errorfile-prefix = var.basedir + "/error/status-" -server.indexfiles = ("index.php", "index.html","index.htm", "default.htm") +var.logdir = "/var/log/lighttpd" server.modules = ( "mod_auth", @@ -43,12 +29,27 @@ server.modules = ( "mod_accesslog" ) -include "mime-types.conf" -include "mod_cgi.conf" +server.username = "lighttpd" +server.groupname = "lighttpd" + +server.port = 80 + +server.document-root = "/data/htdocs/www" + +server.tag = "lighttpd" +server.follow-symlink = "enable" +server.errorfile-prefix = var.basedir + "/error/status-" +server.indexfiles = ("index.php", "index.html","index.htm", "default.htm") + +server.pid-file = "/tmp/lighttpd.pid" +server.errorlog = var.logdir + "/error.log" +accesslog.filename = var.logdir + "/access.log" static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi") -accesslog.filename = "/tmp/access.log" +include "mime-types.conf" +include "mod_cgi.conf" + url.access-deny = ("~", ".inc") ssi.extension = (".shtml") status.status-url = "/server-status"