drupal-security.conf 454 B

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