ram0ng1
You need to modify config.php accordingly. As I already mentioned, this was suggested by @luceos post #4 and post #5 in Multisite installation thread for creating multi forum with multi url and multi database i.e. each shall use their own database. Please follow and read the links if this is what you want.
However, what I have in mind and want to achieve is different than what @luceos proposed as I want to do something like what I mentioned in my post in Multi-language content thread which is multi forum with one installation in a single database.
Here is a sample of the hack that is being made to my config.php:
<?php
if (isset($_SERVER['SERVER_NAME'])) {
$tenancy_url = $_SERVER['SERVER_NAME'];
$tenancy_url_filter = array('discuss.flarum.org', 'english.flarum.org', 'spanish.flarum.org', 'french.flarum.org');
}
return array (
'debug' => false,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'dbname',
'username' => 'dbusername',
'password' => 'dbpassword',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => 'flarumprefix_',
'port' => '3306',
'strict' => false,
),
'url' => 'https://' . (isset($_SERVER['SERVER_NAME']) && in_array($tenancy_url, $tenancy_url_filter) ? $tenancy_url : 'discuss.flarum.org'),
);
*As I said "the path in config.php" for Beta 7.1 below and Beta 8.0 above is different as in the later, you don't need to set the api and admin path in config.php anymore and it should work without it being set in there, as they are already set elsewhere.
**I also clarified and gave my sample structure in a post #13 in Multisite installation thread; where to achieve the same, other than you need to configure the config.php as stated above, you will need to create vhost / conf for each urls as well.
***The above can surely be done better with an extension to check $tenancy_url against $tenancy_url_filter from a created table in the database without modifying config.php.