소스 검색

Merge pull request #257 from strongDong/master

[feat] add nginx rewrite
yeho 5 년 전
부모
커밋
152c4b586f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      vhost.sh

+ 3 - 3
vhost.sh

@@ -618,7 +618,7 @@ server {
     expires 7d;
     access_log off;
   }
-  location ~ /\.ht {
+  location ~ /(\.user\.ini|\.ht|\.git|\.svn|\.project|LICENSE|README\.md) {
     deny all;
   }
   ${NGX_CONF}
@@ -714,7 +714,7 @@ server {
     expires 7d;
     access_log off;
   }
-  location ~ /\.ht {
+  location ~ /(\.user\.ini|\.ht|\.git|\.svn|\.project|LICENSE|README\.md) {
     deny all;
   }
 }
@@ -903,7 +903,7 @@ server {
     expires 7d;
     access_log off;
   }
-  location ~ /\.ht {
+  location ~ /(\.user\.ini|\.ht|\.git|\.svn|\.project|LICENSE|README\.md) {
     deny all;
   }
 }