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