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
path: root/config
diff options
context:
space:
mode:
authoruser121216 <24526701+user121216@users.noreply.github.com>2017-11-20 01:38:36 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-11-20 01:38:36 +0300
commit57950ce168cf2ac128a4433858148f5fc092e9bb (patch)
treee565ce8cbe7a0bab51c8dd6965916f042ffb9dfb /config
parent80214a868e174808ff3b34640add33bd5d4f089a (diff)
If you're using Piwik behind a reverse proxy with a different path like "rewrite ^/piwik/(.*)$ /$1 break;" (nginx.conf), you can provide a header "proxy_set_header X-Forwarded-Uri /piwik;" which will be considered to the current script name. (#12011)
It's necessary, because the redirect after login and links e.g. the logo are not working correctly without.
Diffstat (limited to 'config')
-rw-r--r--config/global.ini.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/global.ini.php b/config/global.ini.php
index 530eda85ae..c03ec5e90f 100644
--- a/config/global.ini.php
+++ b/config/global.ini.php
@@ -497,6 +497,10 @@ multi_server_environment = 0
;proxy_ips[] = 199.27.128.0/21
;proxy_ips[] = 173.245.48.0/20
+; Set to 1 if you're using a proxy which is rewriting the URI.
+; By enabling this flag the header HTTP_X_FORWARDED_URI will be considered for the current script name.
+proxy_uri_header = 0
+
; Whether to enable trusted host checking. This can be disabled if you're running Piwik
; on several URLs and do not wish to constantly edit the trusted host list.
enable_trusted_host_check = 1