Via Tweets

Create drupal multisite on ubuntu vhost

Step 1 : Configure Apache2 

sudo nano /etc/apache2/sites-available/developer

Example,

<VirtualHost 127.0.0.2>

  ServerAdmin admin@example.com

  ServerName example.com

  DocumentRoot /var/www/example.com 

  <Directory />

    Options FollowSymLinks

    AllowOverride All

  </Directory>

</VirtualHost>

Step 2 : Enable new site config

sudo a2ensite developer

Step 3 : Configure hosts file

127.0.0.2 example.com

Step 4 : Put the drupal core or files on /var/www/example.com

Step 5: Configure drupal multisite feature

create drupal multisite inside drupal core

Example,

sites/all/example-subsite1.com

many more... 

Step 6: confifure host file again 

127.0.0.2 example-subsite1.com 

127.0.0.2 example-subsite2.com