From 7ad033838c5b41efd2424a4496a4abf06b9bae3a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 25 Sep 2020 16:13:08 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 47a1732..2425146 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,6 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location __PATH__ { - # Path to source alias __FINALPATH__/ ; # Force usage of https @@ -11,19 +10,19 @@ location __PATH__/ { index index.html index.php; - # 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; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; - + fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; +} + location ~ /(conf|history)(/|$) { + deny all; + } }