* Changed the log path to /var/log and logs filenames
* Disable IPv6
* Do not setuid to a user that doesn't exist on the system
- * Disable pdf ranges fix for Adobe Reader since it uses regex and we
- don't always have pcre support
* Change the network backend to writev since linux-sendfile fails on buildroot
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-var.server_root = "/srv/www"
+var.log_root = "/var/log"
+var.server_root = "/var/www"
- var.state_dir = "/var/run"
+ var.state_dir = "/run"
var.home_dir = "/var/lib/lighttpd"
var.conf_dir = "/etc/lighttpd"
@@ -90,7 +90,7 @@
+server.username = "www-data"
+server.groupname = "www-data"
- ##
- ## enable core files.
-@@ -112,7 +112,7 @@
+ ##
+ ## Enable lighttpd to serve requests on sockets received from systemd
+@@ -118,7 +118,7 @@
##
## Document root
##
##
## The value for the "Server:" response field.
-@@ -138,7 +138,7 @@
+@@ -144,7 +144,7 @@
##
## Path to the error log file
##
##
## If you want to log to syslog you have to unset the
-@@ -188,7 +188,7 @@
+@@ -195,7 +195,7 @@
## sendfile - is recommended for small files.
## writev - is recommended for sending many large files
##
##
## As lighttpd is a single-threaded server, its main resource limit is
-@@ -311,9 +311,9 @@
- ## disable range requests for pdf files
- ## workaround for a bug in the Acrobat Reader plugin.
- ##
--$HTTP["url"] =~ "\.pdf$" {
-- server.range-requests = "disable"
--}
-+# $HTTP["url"] =~ "\.pdf$" {
-+# server.range-requests = "disable"
-+# }
-
- ##
- ## url handling modules (rewrite, redirect)
-# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.55.sha256sum
-sha256 6a0b50e9c9d5cc3d9e48592315c25a2d645858f863e1ccd120507a30ce21e927 lighttpd-1.4.55.tar.xz
+# From https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.58.sha256sum
+sha256 267feffda13a190ebdce7b15172d8be16da98008457f30fddecd72832d126d0e lighttpd-1.4.58.tar.xz
# Locally calculated
-sha256 5c98cad2fbaf5c5e2562bcbab401a7c557c1bb1bac9914ecc63730925052fb13 COPYING
+sha256 5c98cad2fbaf5c5e2562bcbab401a7c557c1bb1bac9914ecc63730925052fb13 COPYING
################################################################################
LIGHTTPD_VERSION_MAJOR = 1.4
-LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).55
+LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).58
LIGHTTPD_SOURCE = lighttpd-$(LIGHTTPD_VERSION).tar.xz
LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-$(LIGHTTPD_VERSION_MAJOR).x
LIGHTTPD_LICENSE = BSD-3-Clause