[documentation] multi site documentation?
sime
info at urbits.com
Sun Jun 25 02:43:27 UTC 2006
Anisa wrote:
>
> On 6/25/06, *Angie Byron* <drupal-docs at webchick.net
> <mailto:drupal-docs at webchick.net>> wrote:
>
>
> Multisite can also mean different domains pointing to the same Drupal
> installation only using different modules, themes, and files but
> otherwise
> sharing the exact same codebase/database. For example:
>
> technology.example.com <http://technology.example.com>
> news.example.com <http://news.example.com>
> kids.example.com <http://kids.example.com>
>
> Multisite doesn't have to just mean completely separate domains/sites.
> Completely separate domains/sites probably would indeed want their
> own databases.
>
> Why? how does that work? What happens if you make a node in
> technology... does that same node show up in news? What's a case for
> this? I sorta see what you mean, it's all the same site, maybe like
> different sections of the same site, but my mind can't quite believe
> it's that simple.
>
The way the above works in a teeny-tiny nutshell.
1. Apache is set up so that one.com and two.com use exactly the same
directory.
2. Drupal then looks at the appropriate settings.php, either in
sites/one.com, or sites/two.com (or sites/default/)
3. If
a) the db connection string is the same and
b) there is no db table prefix defined,
then the two sites use the same database.
In the real world there are some tables you don't want to share, and
there is a solution for this also.
Yes, I couldn't believe how well it works. It is brilliant.
More information about the documentation
mailing list