[TYPO3-core] trustedHostsPattern
JoH asenau
info at cybercraft.de
Thu May 22 15:20:05 CEST 2014
Am 22.05.2014 13:41, schrieb Jigal van Hemert:
> Hi,
>
> On 22-5-2014 12:33, Tomas Norre Mikkelsen wrote:
>> $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern']
>>
>> break my installation as we you different domains for frontend and
>> backend.
>
> I think a little more information about the server setup and the
> configuration is necessary to see why it didn't work for you.
>
> If the server provides the correct server name it will work with
> different domains for frontend and backend without custom configuration.
>
Just for the record, since it seems I posted it in the wrong place
before ;-)
After upgrading the TYPO3 sources we ran into "Exception thrown without
a stack frame blah" without any additional info.
Frontend and backend are running on NGINX behind an NGINX based HA-Proxy
and the domains are configured to be running on different ports than
default.
So the default setting SERVER_NAME just broke any TYPO3 instance
completely and we just found out by accident, what the problem is.
The "accident" was a redirect which is activated for URLs without a
trailing slash and it redirects from
blah.domain.com/typo3
to
blah.domain.tld:12345/typo3/
The latter was running smoothly, which lead us to the actual problem.
Setting the pattern to
.*\.domain\.tld:*
finally solved the problem.
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-team-core
mailing list