Score:0

How do I configure sites.php for a multi-site with fixed IP and subdir?

de flag

I have just installed clean minimal Drupal 9, created a sites/sites.php with the following line

$sites['10.0.0.133.drupal.web.foo-bar'] = 'foo-bar.com';

and the following subdir sites/foo-bar.com with settings.php that includes the correct database settings. After entering http://10.0.0.133/drupal/web/foo-bar into the browser, the default site respond which means the site alias has not been recognized.

Any idea? Do I need a web server vhost created for each site?

Score:0
de flag

After some trying I've found that there HAS to be a web server virtual host pointing at the root drupal directory

id flag
That is documented in `sites.php`.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.