From 4903241e4b9ef49c16b32001c67efefe96bf8c89 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Fri, 1 Nov 2019 08:52:21 +0300 Subject: [PATCH] [DOCUMENTATION][NGINX conf] snippets/fastcgi-php.conf is Debian-specific --- .../webserver_conf/nginx.conf.sample | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample index 0179445003..6fb86c12fe 100644 --- a/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample +++ b/DOCUMENTATION/SYSTEM_ADMINISTRATORS/webserver_conf/nginx.conf.sample @@ -43,10 +43,16 @@ server { location ~ ^/(index|install)\.php(/.*)?$ { #location ^~ /index.php { include fastcgi_params; - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php-fpm.sock; - fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_split_path_info ^(.+?\.php)(/.*)$; + set $path_info $fastcgi_path_info; + try_files $fastcgi_script_name =404; + + fastcgi_pass unix:/run/php/php7.X-fpm.sock; + fastcgi_index index.php; + + fastcgi_param PATH_INFO $path_info; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Don't allow any PHP file other than index.php to be executed