
上QQ阅读APP看书,第一时间看更新
How to do it...
We will use multisites in Drupal 8 by two subdomains under localhost:
- Copy sites/example.sites.php to sites/sites.php.
- Create a dev1.localhost and dev2.localhost folder inside the sites folder.
- Copy the sites/default/default.settings.php file into dev1.localhost and dev2.localhost as settings.php in their respective folder:

- Got to dev1.localhost and run the installation wizard.
- Got to dev2.localhost and verify that you still have the option to install a site!