When creating a directory for an additional site, that includes a port number in it (for example example.com:8080), you're supposed, according to the installation instructions, to put it's settings under sites/example.com.8080/settings.php
Only that the colon (:) is not tranlated into a dot, and as a result the site's configuration won't be seen by druapl.
This can be fixed by changing line 53 in bootstrap.inc. instead of:
$server = explode('.', rtrim($_SERVER['HTTP_HOST'], '.'));
you should put:
$server = str_replace(":", ".", explode('.', rtrim($_SERVER['HTTP_HOST'], '.')));
That fixes it. Is it the right way?
Comments
Comment #1
Zen commentednon-critical.
-K
Comment #2
morbus iffMy understanding is that ports didn't work in Drupal 4.6 and in 4.7, the port is the FIRST separator, such that your example would become sites/8080.example.com/settings.php. The reason is came first was some craziness to do with 80 and the default HTTP port, etc.