Redirect to a Multi-site Install Failing We're trying to redirect a subdomain to a multisite install on an Amazon EC2 Server.  The initial redirect worked like a champ -- it went to the raw IP and we created a directory in sites (sites/54.235.145.17) matching the IP address.

So, now we're trying to do "Masked Subdomain Forwarding" from godaddy.com and it isn't working.  It is always resolving to the raw IP address directory.  We've done:


Created the matching subdirectory:
(demo2.kcl.com)
Created a separate database for the new site
Modified settings.php to access said database


The directory listing:

drwxrwxrwx 6 bitnami daemon  4096 Feb  7 02:20 .
drwxr-x--- 9 bitnami daemon  4096 Jan 27 22:13 ..
drwxrwxrwx 3 bitnami daemon  4096 Jan 29 12:39 54.235.145.17
drwxrwxrwx 5 bitnami daemon  4096 Feb  2 07:53 all
drwxrwxrwx 3 bitnami daemon  4096 Jan 29 12:36 default
-rwxrwxrwx 1 bitnami daemon  2365 Jan 16 21:45 example.sites.php
drwxr-xr-x 3 bitnami daemon  4096 Feb  7 04:06 demo2.kcl.com
-rwxrwxrwx 1 bitnami daemon   904 Jan 16 21:45 README.txt


If I'm reading the documentation correctly, this should work but it is not.  As I said, it simply resolves back to the raw IP address. 

Any solutions or even just things to check would be greatly appreciated.

Thanks in advance!

Scott.

(NOTE: IP and domain names have been changed to protect the ... spammable.)
From the looks of your folder structure you're missing the most important file for a multisite install...sites.php.

Copy example.sites.php to sites.php, edit it to add all sites in the installation to their respective paths, and try again...it should work.

These are the code samples example.sites.php for convenience:

// URL: http://dev.drupal.org
$sites['dev.drupal.org'] = 'example.com';

// URL: http://localhost/example
$sites['localhost.example'] = 'example.com';

// URL: http://localhost:8080/example
$sites['8080.localhost.example'] = 'example.com';

// URL: http://www.drupal.org:8080/mysite/test/
$sites['8080.www.drupal.org.mysite.test'] = 'example.com';


The format is:

'&lt;port&gt;.&lt;domain&gt;.&lt;path&gt;' =&gt; 'directory'