Browse Source

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

Emmanuel Bouthenot 6 năm trước cách đây
mục cha
commit
e40a387713
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 }