Update the nginx.conf so that it supports nested php file execution

This commit is contained in:
Alex Tselegidis 2023-11-20 12:46:19 +01:00
parent 1b22f90b6a
commit e4397820f1

View file

@ -15,10 +15,9 @@ server {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
location ~ ^.+.php {
fastcgi_pass php-fpm:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_split_path_info ^(.+?.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
fastcgi_buffers 16 16k;