default.sites.php shows this example for mapping discovered conf paths to custom site directories:

 * $sites = array(
 *   'devexample.com' => 'example.com',
 *   'localhost/example' => 'example.com',
 * );

The slash in localhost/example obviously has to be a dot - conf_path() uses only dots as token separators, since this name is intended to be an actual folder name and can't contain slashes.

This is one of those "save the devs ten minutes of confusion" fixes.

CommentFileSizeAuthor
#1 default-sites-typo-624754-1.patch745 bytescburschka

Comments

cburschka’s picture

StatusFileSize
new745 bytes

Here's a tiny patch.

cburschka’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch failed testing.

sivaji_ganesh_jojodae’s picture

Status: Needs work » Closed (fixed)

Looks like this is fixed now.