From 860ba3ed76fb05b63e4503745c7fd5fc0695f779 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 7 Jan 2019 16:18:18 +0100 Subject: [PATCH] try to fix --- conf/nginx.conf | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 582b72a..7741357 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,14 @@ -root __FINAL_PATH__/; -index index.php; + root __FINAL_PATH__/; + index index.php; -location __PATH__/ { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + location __PATH__/ { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { include /etc/nginx/fastcgi_params; try_files $uri =404; - fastcgi_pass 127.0.0.1:9000; - } + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } \ No newline at end of file