[TYPO3] Dynamic Setting for config.baseURL

Christopher bedlamhotel at gmail.com
Sun Apr 30 17:52:05 CEST 2006


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