[support] multiple domains at same site

Mohd Kamal Bin Mustafa kamal.mustafa at gmail.com
Thu Apr 22 21:12:58 UTC 2010


Things you list up is nothing specific to the multi-site. It's all
just typical Drupal configuration, means if you can achieve that with
normal Drupal instalation (no multi-site) then you can get the same
result with multi-site.

Multi-site is just a way to use the same code for all sites you setup
rather than having separate Drupal code for each site you setup. The
advantage is when maintaining the code, ie for update you just update
single source tree and all you sites now running with the latest code.

The way Drupal achieve this through a layer of settings file. By
default, Drupal will look for settings.php in ./sites/default folder.
But if you layout your sites folder something like:-

./sites/
./sites/default/
./sites/default/settings.php
/sites/example1.com/
/sites/example1.com/settings.php
/sites/example2.com/
/sites/example2.com/settings.php

then when you request for www.example1.com, Drupal will look inside
/sites/example1.com/ folder for settings.php. But if you request let
say www.anothersite.com Drupal will just look into /sites/default for
settings.php since nothing is configured for that domain.

Everything pass this point is typical Drupal congfiguration.


More information about the support mailing list