Преглед изворни кода

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;
 }