You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nginx-ui/template/block/drupal_security.conf

18 lines
454 B
Plaintext

# Nginx UI Template Start
name = "Drupal Security"
author = "@sanvu88"
description = { en = "Drupal Security Config", zh_CN = "Drupal 安全配置", vi_VN = "Cấu hình bảo mật cho Drupal"}
# Nginx UI Template End
location ~ ((^|/)\.|^.*\.yml$|^/sites/.*/private/|^/sites/[^/]+/[^/]*settings.*\.php$) {
return 444;
}
location ~ ^/sites/[^/]+/files/.*\.php$ {
return 444;
}
location ~ /vendor/.*\.php$ {
return 444;
}