[TYPO3] Dynamic Setting for config.baseURL

Joerg Wagner - DigiLog multimedia usenet at digilog.de
Sun Apr 30 19:33:23 CEST 2006


Thanks Christopher,

works nicely. THX a lot!
--
Jörg Wagner
DigiLog multimedia


"Christopher" <bedlamhotel at gmail.com> schrieb im Newsbeitrag 
news:mailman.9768.1146412347.29768.typo3-english at lists.netfielders.de...
Hi Joerg,

On 4/30/06, Joerg Wagner - DigiLog multimedia <usenet at digilog.de> wrote:
> Hi all,
>
> is there a possibility in TS-Setup to set config props from Apache
> environment vars?
> In my case I need a dynamic setting for config.baseURL . Something like:
>     config.baseURL = getenv:HTTP_HOST
> (which does not work of course).

This works (and should be practical unless there are _many_ domains
pointing to the site--I have it in use in one place with, I think, 9
domains...):


[globalString = HTTP_HOST=*example.com]
config.baseURL = example.com
[globalString = HTTP_HOST=*example.org]
config.baseURL = example.com
[globalString = HTTP_HOST=*example.net]
config.baseURL = example.net
[global]


-Christopher 





More information about the TYPO3-english mailing list