diff --git a/conf/nginx.conf b/conf/nginx.conf index 6915e58..ffb94af 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -38,19 +38,10 @@ location __PATH__/ { return 403; } - location ~ ^__PATH__/tmp/ { + ## disable all access to the following directories + location ~ ^__PATH__/(config|tmp|core|lang) { deny all; - return 403; - } - - location ~ ^__PATH__/core/ { - deny all; - return 403; - } - - location ~ ^__PATH__/lang/ { - deny all; - return 403; + return 403; # replace with 404 to not show these directories exist } location ~ ^__PATH__/\.ht {