mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update matomo-nginx.conf.j2
Move file to higher precedence to handle non-php files as well.
This commit is contained in:
parent
08ade5cd1e
commit
ccaa118dad
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
location ~ ^/matomo/(config|tmp|core|lang) { deny all; return 403; }
|
||||
|
||||
location ~ ^/matomo(.*)\.php(.*)$ {
|
||||
alias /library/www/matomo$1.php$2; # /library/www/matomo
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
@ -10,7 +12,6 @@ location ~ ^/matomo(.*)\.php(.*)$ {
|
|||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $2;
|
||||
location ~ ^/matomo/(config|tmp|core|lang) { deny all; return 403; }
|
||||
}
|
||||
|
||||
location ~ ^/matomo(/)? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue