change nginx.conf

This commit is contained in:
F4ilji
2026-01-25 22:51:13 +05:00
parent 1ae1b5b047
commit 9330ed457c
-2
View File
@@ -127,8 +127,6 @@ server {
}
# Запрет доступа к служебным файлам
location ~ ^/(upload|storage|images|docs|files)/.*\.php$ { deny all; return 404; }
location ~ ^/storage/app/public/upload/iblock/.*\.php$ { deny all; return 404; }
location ~ ^/vendor/.*\.php$ { deny all; return 404; }
location ~ /\.ht { deny all; }
location ~ /\.(?!well-known).* { deny all; }