From 5beb526f697cfaca4c1771c43a6781cac5cb46a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 14 Oct 2020 17:05:08 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 556b622..39fd7e0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,8 +11,14 @@ location __PATH__/ { index index.php; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + if (!-e $request_filename) { rewrite ^ /bludit/index.php last; } + + # try_files $uri $uri/ /bludit//bludit/index.php?$args; + + location ^~ /bludit/bl-content/databases/ { deny all; } + location ^~ /bludit/bl-content/workspaces/ { deny all; } + location ^~ /bludit/bl-content/pages/ { deny all; } + location ^~ /bludit/bl-kernel/*.php { deny all; } try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) {