diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-08 07:56:08 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-08 07:56:08 +0100 |
commit | 5eef107344bbb3fc4a93675f6d3b63fc82ba930a (patch) | |
tree | 2caf6d6fd1c534c88075a53ed3d56f133703370e | |
parent | f356894aa3f30c12cf4d6da0a98e1c0cd2881865 (diff) | |
download | nextcloud-server-5eef107344bbb3fc4a93675f6d3b63fc82ba930a.tar.gz nextcloud-server-5eef107344bbb3fc4a93675f6d3b63fc82ba930a.zip |
turn off mod_pagespeed
-rwxr-xr-x | .htaccess | 3 | ||||
-rw-r--r-- | lib/private/setup.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess index 08e2a82facb..fa6263c7ffe 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 b5c530a091f..5232398d1d7 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(); |