简体   繁体   English

TYPO3 6.2安装期间出现“受信任的主机模式”错误

[英]“Trusted hosts pattern”-error during installation of TYPO3 6.2

I am trying to install the new version of TYPO3 6.2 LTS on a new domain. 我正在尝试在新域上安装TYPO3 6.2 LTS的新版本。 When I am done installing I want to merge the website onto this new domain. 安装完成后,我想将网站合并到这个新域中。 The current version of TYPO3 that the website is using is 4.5 LTS. 网站正在使用的TYPO3的当前版本是4.5 LTS。

This is the tutorial video I used provided by my host: http://www.infomaniak.com/en/support/faq/948 这是主持人提供的我使用的教程视频: http : //www.infomaniak.com/en/support/faq/948

I followed each step and until the install tool. 我遵循了每个步骤,直到安装工具为止。 Once I finished that, an error message appears. 完成此操作后,将显示一条错误消息。 In the tutorial video the install tool starts at 4:20 and around minute 4:58 you see, that to finish the installation you would click on "open the backend" and you can log in to the TYPO3 backend (that's how close I am to finishing!). 在教程视频中,安装工具从4:20开始,大约在4:58分钟开始,您可以单击“打开后端”来完成安装,然后可以登录到TYPO3后端(这与我有多接近来完成!)。 Instead, when I clicked on "open the backend" I got an error about the trusted hosts pattern. 相反,当我单击“打开后端”时,出现有关受信任主机模式的错误。

Here's the error: 这是错误:

Oops, an error occurred! 糟糕,发生错误!

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 'bzhs.ch' for your installation. 如果要允许当前主机头'bzhs.ch'进行安装,请检查$ GLOBALS ['TYPO3_CONF_VARS'] ['SYS'] ['trustedHostsPattern']中定义的模式,并对其进行调整。

Can anyone help me? 谁能帮我? I think I should find someplace to change the $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] and there is some kind of help page ( http://wiki.typo3.org/Exception/CMS/1396795884 ), but that just tells you what to change it to. 我认为我应该找到某个地方来更改$ GLOBALS ['TYPO3_CONF_VARS'] ['SYS'] ['trustedHostsPattern'] ,这里有一些帮助页面( http://wiki.typo3.org/Exception/CMS/1396795884 ),但这只是告诉您将其更改为什么。 My problem is: where do I find $GLOBALS and how do I change that? 我的问题是:在哪里可以找到$ GLOBALS,如何更改它? And will that really fix everything? 真的可以解决所有问题吗?

Thanks! 谢谢! Hope I can fix this soon... 希望我能尽快解决这个问题...

Just open the Install Tool > All configuration > Toggle all and find trustedHostsPattern (ie CTRL+F) 只需打开“ 安装工具” >“ 所有配置” >“ 全部切换”,然后找到TrustedHostsPattern (即CTRL + F)

update the field, save the config, clear the cache. 更新字段,保存配置,清除缓存。

If not sure which domain to set, just use a wildcard as descried there: 如果不确定要设置哪个域,请按照此处所述使用通配符:

To disable this check completely (not recommended because it is insecure ) you can use ".*" as pattern. 要完全禁用此检查(不推荐这样做,因为它不安全 ),可以使用“。*”作为模式。

PS In the LocalConfiguration.php it can be placed in the array: PS在LocalConfiguration.php中,可以将其放置在数组中:

<?php
return array(
    'SYS' => array(
        'compat_version' => '6.2',
        'encryptionKey' => 'foobar123',
        'sitename' => 'Foo Bar site',
        'trustedHostsPattern' => 'your_pattern_here',
        // other settings...
    ),
    // Other sections...
);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM