I am trying to setup what I would call a multisite configuration on my local development server, which currently looks like this. I'm using Xampp in a windows environment so my root is Xampp\htdocs. Any site I'm working on is created under a folder here; for example, for \devsite this gives me the following Drupal structure: \sites\all\themes\devsite.
In my browser, I can go to http://localhost/devsite, and it launches my Drupal site. If I go to http://localhost, I get redirected to the Xampps install site.
My hosts file is altered to include these two entries.
- 127.0.0.1 devsite.com
- 127.0.0.1 m.devsite.com
I copy the content of the \devsite\sites\all directory to the \devsite\sites\m.devsite.com directory (I make some CSS changes so it would be obvious), and setup a \devsite\sites\sites.php file with these entries.
$sites = array(
'devsite.com' => 'all',
'm.devsite.com' => 'm.devsite.com',
If I browse to either hostname, both load the site configuration which is in All. I can't seem to get it to load anything within m.devsite.com? I've tried copying the settings.php file into each stucture which produces an error message. I've tried renaming All to devsite in folder and sites.php but then I get a blank page when browsing.
Do you have any idea on how can I achieve what I am trying to do?