diff options
-rw-r--r-- | etc/apache2/sites-available/jenkins.debian.net | 13 | ||||
-rwxr-xr-x | update_jdn.sh | 1 |
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 |