From 0c1282f2381d1904308380e328a7f8579f6f6b39 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 30 Dec 2019 14:28:24 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c42e7ea..69a5329 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,11 +1,14 @@ -root __FINALPATH__/; -index index.php; +root __FINALPATH__/; +index index.php; + +location __PATH__/ { + try_files $uri $uri/ /index.php?$args; + } location ~ \.php$ { + include /etc/nginx/fastcgi_params; try_files $uri =404; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; - fastcgi_index index.php; + fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /etc/nginx/fastcgi_params; - -} \ No newline at end of file +}