当我在 ddev 中访问我的 TYPO3 站点时,我看到一个 500 错误。
ddev logs
告诉我发生了什么:
2018/05/10 21:07:38 [error] 354#354: *45 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The current host header value does not match the configured trusted hosts pattern! Check the pattern defined in $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] and adapt it, if you want to allow the current host header 'typo3-master.ddev.local:8000' for your installation. in /var/www/html/typo3/sysext/core/Classes/Utility/GeneralUtility.php:2728
我有 ddev v0.18.0 并且已经 run ddev config
,并且我已经确认 AdditionalConfiguration.php 包含 generic $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] = '.*';
,所以它应该匹配任何东西,对吗?