[documentation] multi site docs

Boris Mann boris at bryght.com
Thu Oct 5 15:29:24 UTC 2006


On 10/5/06, Anisa <mystavash at animecards.org> wrote:

> With regards to step 3, there are many ways, as Gaele and Boris (whose name
> always reminds me of rocky and bullwinkle...) pointed out.  I personally
> can't do anything about the document root, I had to ask my host to make a
> symlink.  But it did sound like just changing the docroot was the most ideal
> way.  There are many methods and I would like to have step by steps for each
> of them.  But they should go in the order you recommend.
>
> So, first, are there any methods in addition to the 3 I listed (change doc
> root in apache http.conf, create a symlink, configure .htaccess)?

#1 Point a CNAME in DNS at www.example.com
#2 Change DocRoot (point all DocRoots at example.com DocRoot)
#3 Symlink one DocRoot to the other (if you can't edit httpd.conf)
#4 Configure .htaccess (trickery! very hard! stay away!)

Drupal looks at the incoming host header. #1 is the easiest method,
and you don't even need your host, you just need control over your own
DNS. When you create a subdomain, e.g. sub1.example.com, you set it up
as a CNAME which points to example.com. Drupal's code is the one that
then serves up sub1.example.com, since that's what the incoming
request is for.

> Also, there is also the case of completely different servers?

I think there is still confusion about multi-site. Multi-site, in
Drupal world, means specifically running multiple sites from the same
codebase. It does NOT mean anything about sharing content or
users...that is, well, a whole other section entitled "Sharing content
and users between sites using database prefixing".

So, um, no...this doesn't work if Drupal is on different servers.

-- 
Boris Mann
Vancouver 778-896-2747
San Francisco 415-367-3595
Skype borismann
http://www.bryght.com


More information about the documentation mailing list