With Drupal 7, it's fairly trivial to set up a local alias for a multi-site using the
sites.php file. With Drupal 7, I can have a multi-site folder on my local dev be named:
... located in the
so that it's:
Then in my sites.php file, I do something like this:
$sites['subsite.dev'] = 'subsite.com';
... but I can still view this local site in my browser as:
This is good on many levels, it allows me to have a custom subsite (of a multi-site) as the actual name it will be on the remote server. Thus I can have custom modules and themes for the subsite in my Git repo. In addtion, if I clone the remote db back to local at any given point, any given site specific references do not need to be changed in the local DB.
The question then, is there any way to have similar local aliasing with Drupal 6. I know Drupal 6 does not have the sites.php file so I am not sure how else to do this. Becuase of this, right now I am stuck with rendering my local Drupal 6 multi-site folder as
subsite.dev. I know I could chnage my "hosts" file in OS X but then I am stuck having to change it all the time to view the actual ".com" remote domain.