From e3a52e3181bad26e5e0f48204b40ba464a3a2029 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Dec 2020 18:55:12 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 2e4bbf2..8cb9e61 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Path to source alias __FINALPATH__/public/ ; @@ -11,9 +10,8 @@ location __PATH__/ { index index.php; - #try_files $uri __PATH__/index.php; - try_files $uri __PATH__/index.php$is_args$query_string; - + try_files $uri __PATH__/index.php; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;