From f57e609997d91dbdfaa2e18b1e6e7e95876831bc Mon Sep 17 00:00:00 2001 From: James Meyer Date: Wed, 7 Dec 2011 13:36:35 -0600 Subject: lighttpd: config file change - enable logging through syslog --- abs/core/lighttpd/PKGBUILD | 2 +- abs/core/lighttpd/lighttpd.conf | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/abs/core/lighttpd/PKGBUILD b/abs/core/lighttpd/PKGBUILD index 1758f85..99d9eac 100644 --- a/abs/core/lighttpd/PKGBUILD +++ b/abs/core/lighttpd/PKGBUILD @@ -78,5 +78,5 @@ package() { md5sums=('586eb535d31ac299652495b058dd87c4' 'bd690eee0d9e51857448770a151023b0' '857e174643fd7761a2f0d8431a679f6c' - 'e10f1f82029772115095d45fba3e966a' + '1a55e81d5501584fdf00b6fd0196f82f' 'c6e361131000ceec085f40b310ef4a2c') diff --git a/abs/core/lighttpd/lighttpd.conf b/abs/core/lighttpd/lighttpd.conf index 79d4f66..9851727 100644 --- a/abs/core/lighttpd/lighttpd.conf +++ b/abs/core/lighttpd/lighttpd.conf @@ -40,7 +40,14 @@ server.modules = ( server.document-root = "/data/srv/httpd/htdocs" ## where to send error-messages to -server.errorlog = "/var/log/lighttpd/error.log" +#server.errorlog = "/var/log/lighttpd/error.log" +#### accesslog module +#accesslog.filename = "/var/log/lighttpd/access.log" + +#send errors to syslog +server.errorlog-use-syslog = "enable" +$HTTP["url"] !~ "\.(jpe?g|png|gif|css)" { accesslog.use-syslog = "enable" } + # files to check for if .../ is requested index-file.names = ( "index.php", "index.html", @@ -116,8 +123,6 @@ mimetype.assign = ( ## be nice and keep it at lighttpd # server.tag = "lighttpd" -#### accesslog module -accesslog.filename = "/var/log/lighttpd/access.log" ## deny access the file-extensions # -- cgit v0.12