|
@@ -1,4 +1,8 @@
|
|
-Modify the default lighttpd configuration file to have one a starting conf
|
|
|
|
|
|
+From d1de409b0aeb8dffd42673444043caf01437804e Mon Sep 17 00:00:00 2001
|
|
|
|
+From: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
|
|
+Date: Mon, 13 Dec 2021 22:07:17 +0100
|
|
|
|
+Subject: [PATCH] Modify the default lighttpd configuration file to have one a
|
|
|
|
+ starting conf
|
|
|
|
|
|
* Changed the log path to /var/log and logs filenames
|
|
* Changed the log path to /var/log and logs filenames
|
|
* Disable IPv6
|
|
* Disable IPv6
|
|
@@ -9,11 +13,16 @@ Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
Signed-off-by: Simon Dawson <spdawson@gmail.com>
|
|
Signed-off-by: Simon Dawson <spdawson@gmail.com>
|
|
[Gustavo: update for 1.4.37]
|
|
[Gustavo: update for 1.4.37]
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
+---
|
|
|
|
+ doc/config/conf.d/access_log.conf | 2 +-
|
|
|
|
+ doc/config/lighttpd.conf | 16 ++++++++--------
|
|
|
|
+ 2 files changed, 9 insertions(+), 9 deletions(-)
|
|
|
|
|
|
-diff -Nura lighttpd-1.4.37.orig/doc/config/conf.d/access_log.conf lighttpd-1.4.37/doc/config/conf.d/access_log.conf
|
|
|
|
---- lighttpd-1.4.37.orig/doc/config/conf.d/access_log.conf 2015-09-01 14:38:48.684673663 -0300
|
|
|
|
-+++ lighttpd-1.4.37/doc/config/conf.d/access_log.conf 2015-09-01 14:38:53.975855142 -0300
|
|
|
|
-@@ -9,7 +9,7 @@
|
|
|
|
|
|
+diff --git a/doc/config/conf.d/access_log.conf b/doc/config/conf.d/access_log.conf
|
|
|
|
+index e685d43..92cff4f 100644
|
|
|
|
+--- a/doc/config/conf.d/access_log.conf
|
|
|
|
++++ b/doc/config/conf.d/access_log.conf
|
|
|
|
+@@ -9,7 +9,7 @@ server.modules += ( "mod_accesslog" )
|
|
##
|
|
##
|
|
## Default access log.
|
|
## Default access log.
|
|
##
|
|
##
|
|
@@ -22,12 +31,13 @@ diff -Nura lighttpd-1.4.37.orig/doc/config/conf.d/access_log.conf lighttpd-1.4.3
|
|
|
|
|
|
##
|
|
##
|
|
## The default format produces CLF compatible output.
|
|
## The default format produces CLF compatible output.
|
|
-diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/config/lighttpd.conf
|
|
|
|
---- lighttpd-1.4.37.orig/doc/config/lighttpd.conf 2015-09-01 14:38:48.684673663 -0300
|
|
|
|
-+++ lighttpd-1.4.37/doc/config/lighttpd.conf 2015-09-01 14:39:40.256442492 -0300
|
|
|
|
|
|
+diff --git a/doc/config/lighttpd.conf b/doc/config/lighttpd.conf
|
|
|
|
+index 495d2a1..c3e1446 100644
|
|
|
|
+--- a/doc/config/lighttpd.conf
|
|
|
|
++++ b/doc/config/lighttpd.conf
|
|
@@ -13,8 +13,8 @@
|
|
@@ -13,8 +13,8 @@
|
|
## if you add a variable here. Add the corresponding variable in the
|
|
## if you add a variable here. Add the corresponding variable in the
|
|
- ## chroot example aswell.
|
|
|
|
|
|
+ ## chroot example as well.
|
|
##
|
|
##
|
|
-var.log_root = "/var/log/lighttpd"
|
|
-var.log_root = "/var/log/lighttpd"
|
|
-var.server_root = "/srv/www"
|
|
-var.server_root = "/srv/www"
|
|
@@ -36,7 +46,7 @@ diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/con
|
|
var.state_dir = "/run"
|
|
var.state_dir = "/run"
|
|
var.home_dir = "/var/lib/lighttpd"
|
|
var.home_dir = "/var/lib/lighttpd"
|
|
var.conf_dir = "/etc/lighttpd"
|
|
var.conf_dir = "/etc/lighttpd"
|
|
-@@ -90,7 +90,7 @@
|
|
|
|
|
|
+@@ -90,7 +90,7 @@ server.port = 80
|
|
##
|
|
##
|
|
## Use IPv6?
|
|
## Use IPv6?
|
|
##
|
|
##
|
|
@@ -45,7 +55,7 @@ diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/con
|
|
|
|
|
|
##
|
|
##
|
|
## bind to a specific IP
|
|
## bind to a specific IP
|
|
-@@ -101,8 +101,8 @@
|
|
|
|
|
|
+@@ -101,8 +101,8 @@ server.use-ipv6 = "enable"
|
|
## Run as a different username/groupname.
|
|
## Run as a different username/groupname.
|
|
## This requires root permissions during startup.
|
|
## This requires root permissions during startup.
|
|
##
|
|
##
|
|
@@ -56,7 +66,7 @@ diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/con
|
|
|
|
|
|
##
|
|
##
|
|
## Enable lighttpd to serve requests on sockets received from systemd
|
|
## Enable lighttpd to serve requests on sockets received from systemd
|
|
-@@ -118,7 +118,7 @@
|
|
|
|
|
|
+@@ -118,7 +118,7 @@ server.groupname = "lighttpd"
|
|
##
|
|
##
|
|
## Document root
|
|
## Document root
|
|
##
|
|
##
|
|
@@ -65,7 +75,7 @@ diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/con
|
|
|
|
|
|
##
|
|
##
|
|
## The value for the "Server:" response field.
|
|
## The value for the "Server:" response field.
|
|
-@@ -144,7 +144,7 @@
|
|
|
|
|
|
+@@ -144,7 +144,7 @@ server.pid-file = state_dir + "/lighttpd.pid"
|
|
##
|
|
##
|
|
## Path to the error log file
|
|
## Path to the error log file
|
|
##
|
|
##
|
|
@@ -74,12 +84,15 @@ diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/con
|
|
|
|
|
|
##
|
|
##
|
|
## If you want to log to syslog you have to unset the
|
|
## If you want to log to syslog you have to unset the
|
|
-@@ -195,7 +195,7 @@
|
|
|
|
- ## sendfile - is recommended for small files.
|
|
|
|
- ## writev - is recommended for sending many large files
|
|
|
|
|
|
+@@ -192,7 +192,7 @@ include conf_dir + "/conf.d/debug.conf"
|
|
|
|
+ ## and write(). Every modern OS provides its own syscall to help network
|
|
|
|
+ ## servers transfer files as fast as possible
|
|
##
|
|
##
|
|
--server.network-backend = "sendfile"
|
|
|
|
|
|
+-#server.network-backend = "sendfile"
|
|
+server.network-backend = "writev"
|
|
+server.network-backend = "writev"
|
|
|
|
|
|
##
|
|
##
|
|
## As lighttpd is a single-threaded server, its main resource limit is
|
|
## As lighttpd is a single-threaded server, its main resource limit is
|
|
|
|
+--
|
|
|
|
+2.34.1
|
|
|
|
+
|