diff options
author | Istiak Ferdous <hello@istiakferdous.com> | 2021-09-20 21:22:34 +0600 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-10-02 23:06:09 -0400 |
commit | 94edf7e844d4c8a957fdc4ceeaf09bfbde8e0968 (patch) | |
tree | c5f671f4ad2f825c5f17408f029abc058fad3214 | |
parent | dd22dfa74c3ff526de513cdbd4b95120feab087a (diff) | |
download | lighttpd-git-94edf7e844d4c8a957fdc4ceeaf09bfbde8e0968.tar.gz |
[doc] update config files
github: closes #108
-rw-r--r-- | doc/config/lighttpd.conf | 14 | ||||
-rw-r--r-- | doc/config/vhosts.d/vhosts.template | 3 |
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" { |