Project

General

Profile

Actions

Bug #88846

closed

Install tool (on FIRST_INSTALL) warns about "Trusted hosts pattern mismatch" although 'trustedHostsPattern' is set correctly (if no LocalConfiguration.php is present)

Added by Jonas Eberle over 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2019-07-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
CodingNight InstallTool
Complexity:
Is Regression:
Sprint Focus:

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

Screenshot_20190726_094834.png (39.3 KB) Screenshot_20190726_094834.png Jonas Eberle, 2019-07-26 09:48

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #86356: Checking $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] should be disabled when running initial setup wizardClosed2018-09-23

Actions
Related to TYPO3 Core - Bug #91826: Install issue in TYPO3 10/11Closed2020-07-19

Actions
Related to TYPO3 Core - Bug #103959: TYPO3 fresh installation in DDEV routing context fails on Trusted Hosts Pattern MismatchClosedGarvin Hicking2024-05-31

Actions
Actions

Also available in: Atom PDF