diff --git a/roles/copr/backend/files/lighttpd/access_log.conf b/roles/copr/backend/files/lighttpd/access_log.conf index 7bded9f1d0..2c86f18f9d 100644 --- a/roles/copr/backend/files/lighttpd/access_log.conf +++ b/roles/copr/backend/files/lighttpd/access_log.conf @@ -10,16 +10,16 @@ server.modules += ( "mod_accesslog" ) ## Default access log. ## #accesslog.filename = log_root + "/access.log" -accesslog.filename = "|/usr/sbin/cronolog /var/log/lighttpd/access.log" +#accesslog.filename = "|/usr/sbin/cronolog /var/log/lighttpd/access.log" ## ## The default format produces CLF compatible output. -## For available parameters see access.txt +## For available parameters see access.txt ## #accesslog.format = "%h %l %u %t \"%r\" %b %>s \"%{User-Agent}i\" \"%{Referer}i\"" ## -## If you want to log to syslog you have to unset the +## If you want to log to syslog you have to unset the ## accesslog.use-syslog setting and uncomment the next line. ## #accesslog.use-syslog = "enable" diff --git a/roles/copr/backend/files/lighttpd/lighttpd.conf b/roles/copr/backend/files/lighttpd/lighttpd.conf index e8280864a9..0c542aee2a 100644 --- a/roles/copr/backend/files/lighttpd/lighttpd.conf +++ b/roles/copr/backend/files/lighttpd/lighttpd.conf @@ -77,7 +77,7 @@ var.socket_dir = home_dir + "/sockets" ## Load the modules. #include "modules.conf" server.modules = ( - "mod_access", +# "mod_access", "mod_setenv", "mod_redirect", "mod_indexfile", @@ -479,9 +479,13 @@ url.redirect = ( "^/results/sgallagh/cockpit-preview/(.+)" => "/re url.redirect += ( "^/results/(.*)/(.*)/mageia-(.*)-i386(.*)" => "/results/$1/$2/mageia-$3-i586$4" ) -$HTTP["url"] =~ "^/archive/spacewalk/($|/)" { +$HTTP["url"] =~ "^/archive/spacewalk($|/)" { dir-listing.activate = "disable" index-file.names = ( "index.html" ) } -# make sure logging use cronolog server.max-worker = 6 # this may break many things + +$HTTP["url"] !~ "^/archive/spacewalk($|/)" { + server.modules += ("mod_access") + accesslog.filename = "|/usr/sbin/cronolog /var/log/lighttpd/access.log" +} diff --git a/roles/copr/backend/files/lighttpd/lighttpd_dev.conf b/roles/copr/backend/files/lighttpd/lighttpd_dev.conf index 1bf908e09f..0a5a0caecc 100644 --- a/roles/copr/backend/files/lighttpd/lighttpd_dev.conf +++ b/roles/copr/backend/files/lighttpd/lighttpd_dev.conf @@ -474,3 +474,5 @@ $HTTP["url"] =~ "\.log\.gz$" { } url.redirect = ( "^/results/(.*)/(.*)/mageia-(.*)-i386(.*)" => "/results/$1/$2/mageia-$3-i586$4" ) + +accesslog.filename = "|/usr/sbin/cronolog /var/log/lighttpd/access.log"