Files
pkgsrc-ng/www/lighttpd/patches/patch-doc_config_lighttpd.conf
2016-01-21 23:42:40 +01:00

51 lines
1.6 KiB
Plaintext

$NetBSD: patch-doc_config_lighttpd.conf,v 1.3 2015/09/01 11:54:30 mef Exp $
Sane defaults.
--- doc/config/lighttpd.conf.orig 2015-08-22 21:40:23.000000000 +0900
+++ doc/config/lighttpd.conf 2015-09-01 20:27:59.000000000 +0900
@@ -13,11 +13,11 @@
## if you add a variable here. Add the corresponding variable in the
## chroot example aswell.
##
-var.log_root = "/var/log/lighttpd"
+var.log_root = "@LIGHTTPD_LOGDIR@"
var.server_root = "/srv/www"
-var.state_dir = "/var/run"
+var.state_dir = "@LIGHTTPD_STATEDIR@"
var.home_dir = "/var/lib/lighttpd"
-var.conf_dir = "/etc/lighttpd"
+var.conf_dir = "@PKG_SYSCONFDIR@"
##
## run the server chrooted.
@@ -101,8 +101,8 @@ server.use-ipv6 = "enable"
## Run as a different username/groupname.
## This requires root permissions during startup.
##
-server.username = "lighttpd"
-server.groupname = "lighttpd"
+server.username = "@LIGHTTPD_USER@"
+server.groupname = "@LIGHTTPD_GROUP@"
##
## enable core files.
@@ -178,7 +178,7 @@ include "conf.d/debug.conf"
##
## linux-sysepoll is recommended on kernel 2.6.
##
-server.event-handler = "linux-sysepoll"
+#server.event-handler = "linux-sysepoll"
##
## The basic network interface for all platforms at the syscalls read()
@@ -188,7 +188,7 @@ server.event-handler = "linux-sysepoll"
## sendfile - is recommended for small files.
## writev - is recommended for sending many large files
##
-server.network-backend = "sendfile"
+#server.network-backend = "sendfile"
##
## As lighttpd is a single-threaded server, its main resource limit is