[matomo-web] Handle requests to matomo.php
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [matomo-web] Handle requests to matomo.php
- Date: Thu, 22 Aug 2019 09:24:29 +0000 (UTC)
commit 69b17f6b4c62d73af40bb1cbfa8d30055a916757
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Thu Aug 22 11:24:30 2019 +0200
Handle requests to matomo.php
nginx.conf | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 9b39417..cb129f1 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -80,7 +80,7 @@ http {
}
## Relay all index.php requests to fastcgi.
- location = /index.php {
+ location ~ ^/(index|piwik|matomo)\.php {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
@@ -97,23 +97,6 @@ http {
#include apps/piwik/fcgi_piwik_cache.conf;
}
- ## Relay all piwik.php requests to fastcgi.
- location = /piwik.php {
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param HTTPS on;
- fastcgi_param REMOTE_ADDR $http_x_forwarded_for;
- #Avoid sending the security headers twice
- fastcgi_param modHeadersAvailable true;
- fastcgi_param front_controller_active true;
- fastcgi_pass php-handler;
- fastcgi_intercept_errors on;
- fastcgi_request_buffering off;
- #include apps/piwik/fcgi_piwik_long_cache.conf;
- }
-
## Any other attempt to access PHP files returns a 404.
location ~* ^.+\.php$ {
return 404;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]