浏览代码

Fix Nginx rules to avoid access to hidden files exemple for .well-known pattern

Emmanuel Bouthenot 6 年之前
父节点
当前提交
e40a387713
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/webserver/templates/nginx/vhost_protect-files.j2

+ 1 - 1
roles/webserver/templates/nginx/vhost_protect-files.j2

@@ -6,7 +6,7 @@
 # Protect hidden files and directories
 #
 
-location ~* (?:^|/)\. {
+location ~* (?:^|/)\.(?!well-known) {
     deny all;
 }