I am working on a multi tenant app then created a site.com/tenant1/config.php file with the following codes.
$_SSS[\'app\'][\'db_host\'] ="localhost"