Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Installation/ServerFilesGenerator.php')
-rw-r--r--plugins/Installation/ServerFilesGenerator.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php
index aa87042318..255cea6314 100644
--- a/plugins/Installation/ServerFilesGenerator.php
+++ b/plugins/Installation/ServerFilesGenerator.php
@@ -18,6 +18,9 @@ class ServerFilesGenerator
*/
public static function createHtAccessFiles()
{
+ if(!SettingsServer::isApache()) {
+ return;
+ }
$denyAll = self::getDenyAllHtaccessContent();
$allow = self::getAllowHtaccessContent();
@@ -81,7 +84,6 @@ class ServerFilesGenerator
}
}
-
/**
* Generate IIS web.config files to restrict access
*
@@ -89,6 +91,9 @@ class ServerFilesGenerator
*/
public static function createWebConfigFiles()
{
+ if (!SettingsServer::isIIS()) {
+ return;
+ }
@file_put_contents(PIWIK_INCLUDE_PATH . '/web.config',
'<?xml version="1.0" encoding="UTF-8"?>
<configuration>