summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIstiak Ferdous <hello@istiakferdous.com>2021-09-20 21:22:34 +0600
committerGlenn Strauss <gstrauss@gluelogic.com>2021-10-02 23:06:09 -0400
commit94edf7e844d4c8a957fdc4ceeaf09bfbde8e0968 (patch)
treec5f671f4ad2f825c5f17408f029abc058fad3214 /doc
parentdd22dfa74c3ff526de513cdbd4b95120feab087a (diff)
downloadlighttpd-git-94edf7e844d4c8a957fdc4ceeaf09bfbde8e0968.tar.gz
[doc] update config files
github: closes #108
Diffstat (limited to 'doc')
-rw-r--r--doc/config/lighttpd.conf14
-rw-r--r--doc/config/vhosts.d/vhosts.template3
2 files changed, 9 insertions, 8 deletions
diff --git a/doc/config/lighttpd.conf b/doc/config/lighttpd.conf
index 47beeead..79f76534 100644
--- a/doc/config/lighttpd.conf
+++ b/doc/config/lighttpd.conf
@@ -75,7 +75,7 @@ var.socket_dir = home_dir + "/sockets"
#######################################################################
##
## Load the modules.
-include "modules.conf"
+include conf_dir + "/modules.conf"
##
#######################################################################
@@ -155,13 +155,13 @@ server.errorlog = log_root + "/error.log"
##
## Access log config
##
-include "conf.d/access_log.conf"
+include conf_dir + "/conf.d/access_log.conf"
##
## The debug options are moved into their own file.
## see conf.d/debug.conf for various options for request debugging.
##
-include "conf.d/debug.conf"
+include conf_dir + "/conf.d/debug.conf"
##
#######################################################################
@@ -393,12 +393,12 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
##
## mimetype mapping
##
-include "conf.d/mime.conf"
+include conf_dir + "/conf.d/mime.conf"
##
## directory listing configuration
##
-include "conf.d/dirlisting.conf"
+include conf_dir + "/conf.d/dirlisting.conf"
##
## Should lighttpd follow symlinks?
@@ -478,7 +478,7 @@ include "conf.d/dirlisting.conf"
##
## custom includes like vhosts.
##
-#include "conf.d/config.conf"
-#include "/etc/lighttpd/vhosts.d/*.conf"
+#include conf_dir + "/conf.d/config.conf"
+#include conf_dir + "/vhosts.d/*.conf"
##
#######################################################################
diff --git a/doc/config/vhosts.d/vhosts.template b/doc/config/vhosts.d/vhosts.template
index 06876fa3..93175e21 100644
--- a/doc/config/vhosts.d/vhosts.template
+++ b/doc/config/vhosts.d/vhosts.template
@@ -16,9 +16,10 @@ $HTTP["host"] == "download.example.com" {
server.document-root = vhosts_dir + "/example.com/download/htdocs"
##
## use a seperate access log file
- ## At the moment you cant have different error log files.
+ ## Since lighttpd 1.4.56, server.errorlog can also be used in virtual hosts.
##
accesslog.filename = log_root + "/" + server_name + "/access.log"
+ server.errorlog = log_root + "/" + server_name + "/error.log"
}
$SERVER["socket"] == "127.0.0.1:443" {