Drupal 10安裝後設定檢查
裝好Drupal後,第一件事就是先檢查狀態,進入 admin/reports/status,儘可能讓所有的問題pass
更新通知 未啟用
Update notifications are not enabled. It is highly recommended that you install the Update Manager module from the module administration page in order to stay up-to-date on new releases. For more information, Update status handbook page.
執行
drush cdel update.settings
然後再進入 admin/modules
啟用 Update Manager
Trusted Host Settings 未啟用
The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.
參考頁面照寫即可 https://www.drupal.org/docs/getting-started/installing-drupal/trusted-host-settings
$settings['trusted_host_patterns'] = [
'^.+\.example\.com\.tw$',
];