diff --git a/conf/nginx.conf b/conf/nginx.conf index 5ece882..37cc876 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,11 +15,15 @@ location __PATH__/ { client_max_body_size 100M; try_files $uri $uri/ index.php; - location __PATH__/(index|matomo|piwik|js/index|plugins/HeatmapSessionRecording/configs)\.php(/|$) { - include snippets/fastcgi-php.conf; - try_files $fastcgi_script_name =404; - fastcgi_param HTTP_PROXY ""; + location ~ [^/]\.php(/|$) { + fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; + + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $request_filename; } ## deny access to all other .php files