diff --git a/packages/nginx/etc/nginx/templates/location.d/55-region-public.conf.template b/packages/nginx/etc/nginx/templates/location.d/55-region-public.conf.template index 5feeed70..179e86ec 100644 --- a/packages/nginx/etc/nginx/templates/location.d/55-region-public.conf.template +++ b/packages/nginx/etc/nginx/templates/location.d/55-region-public.conf.template @@ -2,5 +2,9 @@ # Nitrobase file location that can be accessed by anyone. location /$nitrobaseRegionPublic/ { + if ($userLocation = 0) { + return 403 'UND'; # User not defined + } + try_files $uri =404; }