소스 검색

[Nginx] Deny inc/lib location

andryyy 4 년 전
부모
커밋
eec75690e0
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      data/conf/nginx/includes/site-defaults.conf

+ 5 - 0
data/conf/nginx/includes/site-defaults.conf

@@ -88,6 +88,11 @@
     return 301 /SOGo/dav;
   }
 
+  location ^~ /inc/lib/ {
+    deny all;
+    return 403;
+  }
+
   location ~ \.php$ {
     try_files $uri =404;
     fastcgi_split_path_info ^(.+\.php)(/.+)$;