copr: add Content-Encoding: gzip for .gz files on -dev too

This commit is contained in:
Miroslav Suchý 2016-05-02 12:14:36 +02:00
parent ee6fb4fb33
commit f6c767efe8

View file

@ -75,7 +75,12 @@ var.socket_dir = home_dir + "/sockets"
#######################################################################
##
## Load the modules.
include "modules.conf"
#include "modules.conf"
server.modules = (
"mod_access",
"mod_setenv",
"mod_redirect",
)
##
#######################################################################
@ -453,3 +458,8 @@ include_shell "cat /etc/lighttpd/vhosts.d/*.conf"
# ssl.disable-client-renegotiation = "enable"
# 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" )
}