Bug #88846
closedInstall tool (on FIRST_INSTALL) warns about "Trusted hosts pattern mismatch" although 'trustedHostsPattern' is set correctly (if no LocalConfiguration.php is present)
100%
Description
With a reverse proxy in a mixed http/https configuration like
browser <https> proxy <http> webserver
(this configuration can be easily reproduced in ddev where this is default)
the install tool gives a warning on installation. The warning can be ignored and the installation be continued by clicking on "Continue with errors".
In fact this is not an error.
The warning is (obviously) not shown via http://
The warning is:
Trusted hosts pattern mismatch The trusted hosts pattern will be configured to allow all header values. This is because your $SERVER_NAME:[defaultPort] is "testtypo.ddev.site:443" while your HTTP_HOST:SERVER_PORT is "testtypo.ddev.site:80". Check the pattern defined in Admin Tools -> Settings -> Configure Installation-Wide Options -> System -> trustedHostsPattern and adapt it to expected host value(s).
On first glance it seems that AdditionalConfiguration.php is not evaluated when NO LocalConfiguration.php is present.
Test files:¶
AdditionalConfiguration.php¶
<?php $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] = '.*';
LocalConfiguration.php¶
if it does not exist, the warning is shown.
If it contains this, the warning is NOT shown:
<?php return [];
Files
Updated by Jonas Eberle over 5 years ago
- Related to Bug #86356: Checking $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] should be disabled when running initial setup wizard added
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61374
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61374
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61374
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61363
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9d7d35d5421a50e358e7a32dcdf9c0332a6e6c56.
Updated by David Bruchmann over 3 years ago
I had this issue while installing TYPO3 11.3-dev with the Installtool.
The advised hints helped, even I had to return $GLOBALS['TYPO3_CONF_VARS'] instead of an empty array.
My environment:
OS: some Linux
TYPO3 v11.3-dev
PHP 7.4
Apache 2.4, PHP, CGI
MariaDB 10.5 + InnoDB
Updated by David Bruchmann over 3 years ago
- Related to Bug #91826: Install issue in TYPO3 10/11 added
Updated by David Bruchmann over 3 years ago
- Tags changed from CodingNight to CodingNight InstallTool
Updated by Garvin Hicking 6 months ago
- Related to Bug #103959: TYPO3 fresh installation in DDEV routing context fails on Trusted Hosts Pattern Mismatch added