Bläddra i källkod

Merge pull request #1599 from madito/main

Fix problems upgrade letsencrypt thanks @jaapmarcus
Raphael Schneeberger 5 år sedan
förälder
incheckning
e4b7a539be

+ 0 - 7
install/deb/templates/web/nginx/php-fpm/moodle.stpl

@@ -46,13 +46,6 @@ server {
         return 403;
     }
 
-    # Block access to "hidden" files and directories whose names begin with a
-    # period. This includes directories used by version control systems such
-    # as Subversion or Git to store control files.
-    location ~ (^|/)\. {
-            return 403;
-        }
-
     location / {
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
             expires     max;

+ 0 - 7
install/deb/templates/web/nginx/php-fpm/moodle.tpl

@@ -42,13 +42,6 @@ server {
         return 403;
     }
 
-    # Block access to "hidden" files and directories whose names begin with a
-    # period. This includes directories used by version control systems such
-    # as Subversion or Git to store control files.
-    location ~ (^|/)\. {
-        return 403;
-    }
-
     location / {
         location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
             expires     max;