summaryrefslogtreecommitdiffstats
path: root/etc/apache2/sites-available/jenkins.debian.net
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-08 01:20:18 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-08 12:01:51 +0200
commit7d3285b3416facabe697834cbf00e06f6b51a715 (patch)
tree494ce22355896dc84ea0c9a9bd2862b846aaa66a /etc/apache2/sites-available/jenkins.debian.net
parent034747b1e7f1e154619f9034111d64cdf02ca869 (diff)
downloadjenkins.debian.net-7d3285b3416facabe697834cbf00e06f6b51a715.tar.xz
apache: try again to teach apache how to serve compressed files, with the correct apache 2.2 syntax
Diffstat (limited to 'etc/apache2/sites-available/jenkins.debian.net')
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/apache2/sites-available/jenkins.debian.net b/etc/apache2/sites-available/jenkins.debian.net
index d7c9ffa9..26343561 100644
--- a/etc/apache2/sites-available/jenkins.debian.net
+++ b/etc/apache2/sites-available/jenkins.debian.net
@@ -59,6 +59,19 @@ NameVirtualHost *:443
AddType text/plain .log
</Directory>
+ <FilesMatch "\.gz$">
+ AddEncoding gzip .gz
+ ForceType text/plain
+ FilterDeclare gzipInflate CONTENT_SET
+ <IfVersion >= 2.4>
+ FilterProvider gzipInflate inflate "%{req:Accept-Encoding} !~ /gzip/"
+ </IfVersion>
+ <IfVersion <= 2.2>
+ FilterProvider gzipInflate inflate resp=Accept-Encoding ! $gzip
+ </IfVersion>
+ FilterChain +gzipInflate
+ </FilesMatch>
+
RewriteEngine on
ProxyRequests Off