diff --git a/core/Config.php b/core/Config.php index 2e093007c7d6d50920244316ab3979164f5b3b51..f08aeff59cd40c7cab8b42ba044799fb26a5a32b 100644 --- a/core/Config.php +++ b/core/Config.php @@ -196,6 +196,8 @@ class Config extends Singleton private static function getLocalConfigInfoForHostname($hostname) { + // Remove any port number to get actual hostname + $hostname = Url::getHostSanitized($hostname); $perHostFilename = $hostname . '.config.ini.php'; $pathDomainConfig = PIWIK_USER_PATH . '/config/' . $perHostFilename;