copr: fix rendering of log.gz files
this got broken after a66fe3820
because we cannot load mod_access after mod_setenv
This commit is contained in:
parent
ae525c269d
commit
08994deb1f
1 changed files with 6 additions and 7 deletions
|
@ -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",
|
||||
|
@ -470,11 +470,6 @@ $SERVER["socket"] == ":443" {
|
|||
ssl.cipher-list = "ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM"
|
||||
}
|
||||
|
||||
$HTTP["url"] =~ "\.log\.gz$" {
|
||||
setenv.add-response-header = ( "Content-Encoding" => "gzip")
|
||||
mimetype.assign = ("" => "text/plain" )
|
||||
}
|
||||
|
||||
url.redirect = ( "^/results/sgallagh/cockpit-preview/(.+)" => "/results/@cockpit/cockpit-preview/$1" )
|
||||
|
||||
url.redirect += ( "^/results/(.*)/(.*)/mageia-(.*)-i386(.*)" => "/results/$1/$2/mageia-$3-i586$4" )
|
||||
|
@ -482,10 +477,14 @@ url.redirect += ( "^/results/(.*)/(.*)/mageia-(.*)-i386(.*)" => "/results/$1/$2/
|
|||
$HTTP["url"] =~ "^/archive/spacewalk($|/)" {
|
||||
dir-listing.activate = "disable"
|
||||
index-file.names = ( "index.html" )
|
||||
accesslog.filename = ""
|
||||
}
|
||||
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"
|
||||
$HTTP["url"] =~ "\.log\.gz$" {
|
||||
setenv.add-response-header = ( "Content-Encoding" => "gzip")
|
||||
mimetype.assign = ("" => "text/plain" )
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue