From 1fda8727856e8598f8df09596d673dc40b8017d2 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 5 Jan 2021 10:32:27 +0100 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 63785a1..975af67 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,16 +9,13 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - index index.php index.html ; + index index.php ; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + rewrite ^/.*$ /index.php last; - try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; - fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user;