diff --git a/templates/nginx-virthost.j2 b/templates/nginx-virthost.j2 index 9303f0c..ccb1519 100644 --- a/templates/nginx-virthost.j2 +++ b/templates/nginx-virthost.j2 @@ -57,7 +57,7 @@ server { access_log off; } {% if nginx_block_dotfiles %} - location ~ /\. { + location ~ /\.(?!well-known).* { deny all; access_log off; log_not_found off;