change nginx.conf
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user