diff --git a/conf/nginx.conf b/conf/nginx.conf index d1c54ad..f1da700 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -35,7 +35,22 @@ location ^~ __PATH__/ { } ## disable all access to the following directories - location ~ ^__PATH__/(config/|tmp/|core/|lang/) { + location ^~ __PATH__/config/ { + deny all; + return 403; + } + + location ^~ __PATH__/tmp/ { + deny all; + return 403; + } + + location ^~ __PATH__/core/ { + deny all; + return 403; + } + + location ^~ __PATH__/lang/ { deny all; return 403; }