From 87caa582baba295b8051d0453d8df21a9192b4eb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 17 May 2021 21:54:15 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 37cc876..24b508e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,8 @@ location __PATH__/ { # Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file client_max_body_size 100M; - try_files $uri $uri/ index.php; + try_files $uri $uri/ =404; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; @@ -32,10 +33,6 @@ location __PATH__/ { return 403; } - location __PATH__/ { - try_files $uri $uri/ =404; - } - ## disable all access to the following directories location __PATH__/(config|tmp|core|lang) { deny all;