Adding a subdomain to the LiveWhale configuration
How to add a subdomain to the LiveWhale configuration.
This setting can be adjusted using the master LiveWhale configuration. (Please see “Configuring LiveWhale” for more information.)
Each host that LiveWhale serves content to should be registered in LiveWhale’s host config, inside the master LiveWhale configuration file.
Open the master LiveWhale config (/livewhale/core/config.php) using an FTP client or via the command line.
Find the HOSTS array: $GLOBALS[‘LIVEWHALE_CONFIG’][‘HOSTS’]. This will contain an entry for each host. An example additional host entry would be as follows:
$GLOBALS[‘LIVEWHALE_CONFIG’][‘HOSTS’][‘subdomain.domain.edu’]=array( // add an additional LiveWhale host for subdomain.domain.edu
‘HTTP_HOST’=>’subdomain.domain.edu’,
‘DATABASE_HOST’=>’localhost’,
// and so forth, for each setting
);
Logging into the LiveWhale administration interface from a particular host will not be possible until that host is registered in the configuration file.
For more information on multiple site support in LiveWhale, please see “Support for multiple web sites/domains/servers”.