Explorar o código

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

Emmanuel Bouthenot %!s(int64=6) %!d(string=hai) anos
pai
achega
e40a387713
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 }