[TYPO3-dev] Question about condition hostname
Joerg Schoppet
joerg at schoppet.de
Sun Mar 26 17:57:53 CEST 2006
Hi devs,
I've a question regarding bug 2300.
In TYPO3 3.8.1 config.baseURL was changed, so that you always have to
fill in the complete domain.
As solution for a multi-domain-installation there is the following solution:
config.baseURL = example.org
[hostname = test.example.org]
config.baseURL = test.example.org
[global]
But this doesn't work. Why? Well, because of the implementation of the
hostname-condition.
In class.t3lib_matchCondition.php the condition "hostname" looks for the
Server-Var "REMOTE_ADDR", and this var always contains the
client-ip-address.
So a gethostbyaddr()-call will never return the locally used domain.
A solution is not to use "hostname" but [globalString =
IENV:HTTP_HOST=test.example.org]
But I think this is only a symptom and not the cause.
Regards
Joerg
More information about the TYPO3-dev
mailing list