From f6c767efe8f31422620022789f2acf1d64a6b0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 2 May 2016 12:14:36 +0200 Subject: [PATCH] copr: add Content-Encoding: gzip for .gz files on -dev too --- roles/copr/backend/files/lighttpd/lighttpd_dev.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/copr/backend/files/lighttpd/lighttpd_dev.conf b/roles/copr/backend/files/lighttpd/lighttpd_dev.conf index a6b07a4b20..9a08dd5346 100644 --- a/roles/copr/backend/files/lighttpd/lighttpd_dev.conf +++ b/roles/copr/backend/files/lighttpd/lighttpd_dev.conf @@ -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" ) +}