diff --git a/conf/nginx.conf b/conf/nginx.conf index ed6982d..a313076 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,7 +15,7 @@ location PATHTOCHANGE { # Do not include SSOWAT user panel. #include conf.d/yunohost_panel.conf.inc; -} -location ~ ^PATHTOCHANGE/(conf|history) { - deny all; + location ~ /(conf|history)(/|$) { + deny all; + } }