summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--etc/apache2/sites-available/jenkins.debian.net13
-rwxr-xr-xupdate_jdn.sh1
2 files changed, 14 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
diff --git a/update_jdn.sh b/update_jdn.sh
index 68e686ea..a7e824b4 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -204,6 +204,7 @@ if [ ! -e /etc/apache2/mods-enabled/proxy.load ] ; then
sudo a2enmod ssl
sudo a2enmod headers
sudo a2enmod macro
+ sudo a2enmod filter
fi
sudo chown root.root /etc/sudoers.d/jenkins ; sudo chmod 700 /etc/sudoers.d/jenkins
sudo chown root.root /etc/sudoers.d/jenkins-adm ; sudo chmod 700 /etc/sudoers.d/jenkins-adm