Browse Source

[Nginx] Deny inc/lib location

andryyy 4 years ago
parent
commit
eec75690e0
1 changed files with 5 additions and 0 deletions
  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)(/.+)$;