copr: disable logging of /archive/spacewalk requests
This commit is contained in:
parent
003bd6271f
commit
a66fe38208
3 changed files with 12 additions and 6 deletions
roles/copr/backend/files/lighttpd
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue