mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-17 23:12:14 +02:00
17 lines
454 B
Text
17 lines
454 B
Text
# 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;
|
|
}
|