0

当我在 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'] = '.*';,所以它应该匹配任何东西,对吗?

4

1 回答 1

1

TYPO3 v9 似乎无法使用包含端口的trustedHostsPattern。您在端口 8000 上运行,对于 TYPO3 v9 和 ddev,请弄清楚如何在端口 80 上获取它。在https://ddev.readthedocs 上有关于如何确定其他可能使用端口 80 的故障排除说明。 io/en/latest/users/疑难解答/#unable-listen

于 2018-05-10T22:21:44.123 回答