diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-05-08 01:20:18 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-08 12:01:51 +0200 |
commit | 7d3285b3416facabe697834cbf00e06f6b51a715 (patch) | |
tree | 494ce22355896dc84ea0c9a9bd2862b846aaa66a /etc/apache2/sites-available/jenkins.debian.net | |
parent | 034747b1e7f1e154619f9034111d64cdf02ca869 (diff) | |
download | jenkins.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.net | 13 |
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 |