[TYPO3-dev] Question about condition hostname
ben van 't ende [netcreators]
ben at netcreators.nl
Sun Mar 26 18:41:57 CEST 2006
Joerg Schoppet wrote:
> 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.
Hi Joerg,
So that's why it didn't work for me too! Shouldn't you report that as a
bug? It is quit important since multidomains are better suported with
the latest TYPO3 and the need for above mentioned solution is there.
What should hostname actually look for then?
gRTz
ben
--
netcreators::creation and innovation
www.netcreators.com - www.typo3.nl
More information about the TYPO3-dev
mailing list