[Nginx] Deny inc/lib location

master
andryyy 2021-08-08 16:06:26 +02:00
parent 6db004bc79
commit eec75690e0
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 5 additions and 0 deletions

View File

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