From 6135399560b73c0e89a5b57fe6a582c7c5b7136a Mon Sep 17 00:00:00 2001 From: pp-r <64266134+pp-r@users.noreply.github.com> Date: Thu, 7 May 2020 12:06:51 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9894c4a..7deedcc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,12 +10,16 @@ location __PATH__/ { } ### Example PHP configuration (remove it if not used) - index index.php; + #index index.php; + # Default indexes and catch-all + index index.html index.php; + try_files $uri $uri/ __PATH__/index.php?$args; + # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 50M; - try_files $uri $uri/ index.php; + #try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;