소스 검색

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;