From d733f15917f2aafe77b3e90b11703418c2e0a84d Mon Sep 17 00:00:00 2001 From: Eclipse Date: Sat, 30 Sep 2023 00:06:27 +0200 Subject: [PATCH] finally figured out the correct configuration to have nginx and php-fpm execute my php script --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5f9c10a..32af934 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,9 +6,10 @@ location __PATH__/ { index index.html; - try_files $uri index.html; location ~ \.php { + fastcgi_split_path_info ^(.+\.php)(.*)$; + fastcgi_param SCRIPT_FILENAME $request_filename; include fastcgi_params; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; }