From 3094f83e1c6c7345eef35be72df43e34ea9b7a34 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Thu, 13 Sep 2018 16:04:41 +0530 Subject: [PATCH] sub-path fix --- conf/nginx.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 082df01..db85a54 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -32,12 +32,13 @@ location __PATH__ { } # PHP configuration end - # Deny access to /data/config.ini.php - location = /data/config.ini.php { - deny all; - return 404; - } # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + + # Deny access to /data/config.ini.php + location = __PATH__/data/config.ini.php { + deny all; + return 404; + }