diff --git a/conf/nginx.conf b/conf/nginx.conf index 398f4ba..082df01 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -31,7 +31,13 @@ location __PATH__ { fastcgi_param SCRIPT_FILENAME $request_filename; } # 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; }