lighttpd: add new modules, upd URLs, add restart()

(with feedback from @hnyman and patch additions from @MikePetullo)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
This commit is contained in:
Glenn Strauss
2017-01-07 00:38:05 -05:00
parent e71771676c
commit d1433a582c
3 changed files with 71 additions and 23 deletions
+4 -7
View File
@@ -1,6 +1,3 @@
server.modules = (
)
server.document-root = "/www"
server.upload-dirs = ( "/tmp" )
server.errorlog = "/var/log/lighttpd/error.log"
@@ -10,7 +7,7 @@ server.groupname = "www-data"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
"index.lighttpd.html" )
)
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
@@ -20,7 +17,7 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
#server.bind = "localhost"
#server.tag = "lighttpd"
#server.errorlog-use-syslog = "enable"
#server.network-backend = "write"
#server.network-backend = "writev"
### Use IPv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl"
@@ -28,5 +25,5 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
#dir-listing.encoding = "utf-8"
#server.dir-listing = "enable"
include "/etc/lighttpd/mime.conf"
include_shell "cat /etc/lighttpd/conf.d/*.conf"
include "/etc/lighttpd/mime.conf"
include "/etc/lighttpd/conf.d/*.conf"
+6
View File
@@ -18,3 +18,9 @@ stop() {
service_stop /usr/sbin/lighttpd
}
restart() {
/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf || exit 1
stop
start
}