Преглед на файлове

Merge pull request #1599 from madito/main

Fix problems upgrade letsencrypt thanks @jaapmarcus
Raphael Schneeberger преди 5 години
родител
ревизия
e4b7a539be
променени са 2 файла, в които са добавени 0 реда и са изтрити 14 реда
  1. 0 7
      install/deb/templates/web/nginx/php-fpm/moodle.stpl
  2. 0 7
      install/deb/templates/web/nginx/php-fpm/moodle.tpl

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