I am wondering if multisite Drupal allows you to have a default site too. Something like
sites/mysite/settings.php along with the proper sites.php. If yes then what should
sites.php look like?
For sure you can have a default site to use i case if the requested site was not available some reason the default site will be open to user. to do that you need to setup the default site setting under sites/default/setting.php
lets assume we have 3 website
In that case your file structure needs to be :
- /sites/mysite1.com folder which will have setting.php file for mysite1
- /sites/mysite2.com folder which will have setting.php file for mysite2
- /sites/mysite3.com folder which will have setting.php file for mysite3
- /sites/default folder which will have setting.php file for default site
You need to setup your .htaccess file in your root of server to point every Domain to the main drupal folder. to learn more about .htaccess please read here.
No to test if your default site is working simply rename mysite1.com folder to xxxxx and now try to access your mysite1.com using any browser it shoud take you to default site because mysite1.come folder cant be found anymore.