mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -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"
|
||||
|
||||
@@ -18,3 +18,9 @@ stop() {
|
||||
service_stop /usr/sbin/lighttpd
|
||||
}
|
||||
|
||||
restart() {
|
||||
/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf || exit 1
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user