mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-09-01 00:17:13 +00:00
[Nginx] Deny inc/lib location
This commit is contained in:
@@ -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)(/.+)$;
|
||||||
|
|||||||
Reference in New Issue
Block a user