From 940e3fd59363be9e924c1c534707e6132332da09 Mon Sep 17 00:00:00 2001 From: Miraty Date: Sat, 5 Mar 2022 16:04:16 +0100 Subject: [PATCH] Fix installation on root path --- conf/nginx.conf | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index d745eac..1cda048 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,16 +7,15 @@ location __PATH__/ { index index.php; # Chrooted PHP-FPM - location ~ ^__PATH__(?/.*\.php)$ { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; - +#sub_path_only location ~ ^__PATH__(?/.*\.php)$ { +#root_path_only location ~ ^(?/.*\.php)$ { alias /; + 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_split_path_info ^(.+?\.php)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $chroot_path; + include fastcgi_params; } # Security related headers