diff --git a/config/nginx.conf b/config/nginx.conf index c5beba8..cd25a17 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -132,5 +132,10 @@ http { root /etc/nginx/html; try_files $uri $uri/index.html =404; } + + # Deny .* (e.g. .git/) + location ~ /\. { + deny all; + } } }