board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / lighttpd / 0001-Fix-default-config-file.patch
blobada158976030ed1008691f2997f631394535e371
1 Modify the default lighttpd configuration file to have one a starting conf
3 * Changed the log path to /var/log and logs filenames
4 * Disable IPv6
5 * Do not setuid to a user that doesn't exist on the system
6 * Disable pdf ranges fix for Adobe Reader since it uses regex and we
7 don't always have pcre support
8 * Change the network backend to writev since linux-sendfile fails on buildroot
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 Signed-off-by: Simon Dawson <spdawson@gmail.com>
12 [Gustavo: update for 1.4.37]
13 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
15 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
16 --- lighttpd-1.4.37.orig/doc/config/conf.d/access_log.conf 2015-09-01 14:38:48.684673663 -0300
17 +++ lighttpd-1.4.37/doc/config/conf.d/access_log.conf 2015-09-01 14:38:53.975855142 -0300
18 @@ -9,7 +9,7 @@
20 ## Default access log.
22 -accesslog.filename = log_root + "/access.log"
23 +accesslog.filename = log_root + "/lighttpd-access.log"
26 ## The default format produces CLF compatible output.
27 diff -Nura lighttpd-1.4.37.orig/doc/config/lighttpd.conf lighttpd-1.4.37/doc/config/lighttpd.conf
28 --- lighttpd-1.4.37.orig/doc/config/lighttpd.conf 2015-09-01 14:38:48.684673663 -0300
29 +++ lighttpd-1.4.37/doc/config/lighttpd.conf 2015-09-01 14:39:40.256442492 -0300
30 @@ -13,8 +13,8 @@
31 ## if you add a variable here. Add the corresponding variable in the
32 ## chroot example aswell.
34 -var.log_root = "/var/log/lighttpd"
35 -var.server_root = "/srv/www"
36 +var.log_root = "/var/log"
37 +var.server_root = "/var/www"
38 var.state_dir = "/var/run"
39 var.home_dir = "/var/lib/lighttpd"
40 var.conf_dir = "/etc/lighttpd"
41 @@ -90,7 +90,7 @@
43 ## Use IPv6?
45 -server.use-ipv6 = "enable"
46 +# server.use-ipv6 = "enable"
49 ## bind to a specific IP
50 @@ -101,8 +101,8 @@
51 ## Run as a different username/groupname.
52 ## This requires root permissions during startup.
54 -server.username = "lighttpd"
55 -server.groupname = "lighttpd"
56 +server.username = "www-data"
57 +server.groupname = "www-data"
59 ##
60 ## enable core files.
61 @@ -112,7 +112,7 @@
63 ## Document root
65 -server.document-root = server_root + "/htdocs"
66 +server.document-root = server_root
69 ## The value for the "Server:" response field.
70 @@ -138,7 +138,7 @@
72 ## Path to the error log file
74 -server.errorlog = log_root + "/error.log"
75 +server.errorlog = log_root + "/lighttpd-error.log"
78 ## If you want to log to syslog you have to unset the
79 @@ -188,7 +188,7 @@
80 ## sendfile - is recommended for small files.
81 ## writev - is recommended for sending many large files
83 -server.network-backend = "sendfile"
84 +server.network-backend = "writev"
87 ## As lighttpd is a single-threaded server, its main resource limit is
88 @@ -311,9 +311,9 @@
89 ## disable range requests for pdf files
90 ## workaround for a bug in the Acrobat Reader plugin.
92 -$HTTP["url"] =~ "\.pdf$" {
93 - server.range-requests = "disable"
95 +# $HTTP["url"] =~ "\.pdf$" {
96 +# server.range-requests = "disable"
97 +# }
100 ## url handling modules (rewrite, redirect)