finally figured out the correct configuration to have nginx and php-fpm execute my php script

This commit is contained in:
Eclipse 2023-09-30 00:06:27 +02:00
parent 65aa3df868
commit d733f15917

View File

@ -6,9 +6,10 @@ location __PATH__/ {
index index.html; index index.html;
try_files $uri index.html;
location ~ \.php { location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params; include fastcgi_params;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
} }