Multisite setup on local development environment I've been around the block with this one. and I'm back at my front door! 

I am trying to setup a multisite configuration on my local dev server, which currently looks like this.
I'm using Xampp in a windows environment so my root is "Xampp\htdocs\"; then any site I'm working on is created under a folder here.

This gives me the follwing Drupal stucture.


  \sites\all\themes\devsite


In my browser, I can go to http://localhost/devsite, and it launches my Drupal site without problems; If I go to http://localhost, I get redirected to XAMPPS installation page.

So now I embark on the multisite config. 

First, my hosts file is altered to include these two entries.


127.0.0.1 devsite.com
127.0.0.1 m.devsite.com


Browsing to the following URLs launch my site.


http://devsite.com/devsite
http://m.devsite.com/devsite


I now copy my \devsite\sites\all structure to a \devsite\sites\m.devsite.com folder and setup a \devsite\sites\sites.php file with these entries. 

$sites = array(
    'devsite.com' =&gt; 'all',
    'm.devsite.com' =&gt; '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 what is wrong?
Not sure what exactly you want to do.

Multi-site is usually used to create separate drupal installation from the same drupal folder. To create one, you need to copy default/default.settings.php to yoursite.com/settings.php, make it writable and then visit the site, which should present you with the installer.

You only need to something with sites.php if you want to override the default domain mapping and e.g. also server siteB.com from sites/siteA.com. Also, Drupal doesn't search for a settings.php in 'all' but 'default'.

Your naming scheme sounds more like you want a mobile version of your site, which usually just implies that a different theme is used and some other mobile specific things. There are modules which can automatically changing the theme when the site is requested by a mobile browser.