[support] multisite - document tree vs. file tree

Metzler, David metzlerd at evergreen.edu
Wed May 5 15:37:53 UTC 2010


Apache aliases will not be honored by php inlcudes which are inherently
file operations.  Symbolic links are the proper method, but be sure that
permissions on the target directory are correct and that your apache is
configured to follow symbolic links.  That is not the default apache
configuration. 
 
Dave

________________________________

From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Jim Tarvid
Sent: Tuesday, May 04, 2010 8:10 PM
To: support at drupal.org
Subject: [support] multisite - document tree vs. file tree


I want to run a multisite installation where sites/domain_name is in the
user file space. A symlink seems to do the trick.

root at helen:~# ls -la /home/lsnet/public_html/drupal.ls.net/sites/
total 16
drwxr-xr-x  4 lsnet lsnet 4096 2010-05-04 17:16 .
drwxr-xr-x 10 lsnet lsnet 4096 2010-03-06 14:28 ..
lrwxrwxrwx  1 lsnet lsnet   36 2010-05-04 15:08 adumbral.ls.net ->
/home/adumbral/sites/adumbral.ls.net
drwxr-xr-x  4 lsnet lsnet 4096 2010-03-03 19:20 all
drwxr-xr-x  4 lsnet lsnet 4096 2010-03-03 19:20 default
lrwxrwxrwx  1 lsnet lsnet   41 2010-05-04 17:16 wordsoftheprophets.org
-> /home/tarvid/sites/wordsoftheprophets.org

root at helen:~# cat /etc/apache2/sites-available/wordsoftheprophets.org 
<VirtualHost *>

    DocumentRoot "/home/lsnet/public_html/drupal.ls.net"
    ServerName wordsoftheprophets.org

    <Directory "/home/lsnet/public_html/drupal.ls.net">
        allow from all
                AllowOverride AuthConfig FileInfo Indexes Limit Options
                Options FollowSymLinks SymLinksIfOwnerMatch +Indexes
    </Directory>

    ServerAlias www.wordsoftheprophets.org
</VirtualHost>

I tried to do this with an alias in sites-available.

   Alias /sites/wordsoftheprophets.org
/home/tarvid/sites/wordsoftheprophets.org

Which does not work.

Is this because Drupal examines the file tree instead of the document
tree?

Jim

-- 
Rev. Jim Tarvid, PCA
Galax, Virginia
http://ls.net
http://drupal.ls.net
http://crossleft.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100505/90f9bda8/attachment.html 


More information about the support mailing list