[Pkg-owncloud-commits] [owncloud] 52/104: turn off mod_pagespeed
David Prévot
taffit at moszumanska.debian.org
Sat Jan 18 13:33:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit c6fa2dd8e2eea15b92fa696532dc10804866e62f
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Wed Jan 8 07:56:08 2014 +0100
turn off mod_pagespeed
---
.htaccess | 3 +++
lib/private/setup.php | 3 +++
2 files changed, 6 insertions(+)
diff --git a/.htaccess b/.htaccess
index 08e2a82..fa6263c 100755
--- a/.htaccess
+++ b/.htaccess
@@ -38,3 +38,6 @@ DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
Options -Indexes
+<IfModule pagespeed_module>
+ ModPagespeed Off
+</IfModule>
diff --git a/lib/private/setup.php b/lib/private/setup.php
index b5c530a..5232398 100644
--- a/lib/private/setup.php
+++ b/lib/private/setup.php
@@ -159,6 +159,9 @@ class OC_Setup {
$content.= "</IfModule>\n";
$content.= "AddDefaultCharset utf-8\n";
$content.= "Options -Indexes\n";
+ $content.= "<IfModule pagespeed_module>\n";
+ $content.= "ModPagespeed Off\n";
+ $content.= "</IfModule>\n";
@file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
self::protectDataDirectory();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list