开发者

Drupal multi-site setup with sub-directories

I have a multi-site setup with a single codebase. Is it possible to have my sites directory set up like this with sub folders: mysite.com in /home/drupal/sites/mysite.com

othersite1.com in /home/drupal/sites/cluster1/othersite1.com

othersite2.com in /home/drupal/sites/cluster1/othersite2.com

othersite3.com in /home/drupal/sites/cluster2/othersite3.com

othersite4.com开发者_开发知识库 in /home/drupal/sites/cluster2/othersite4.com

I'm trying to find a way to organize all my sites.

thanks


You can do this if you are using Drupal 7. There is a file called sites.php in sites folder that you can alias the paths to your sites. If you are using < Drupal 7 you can make the directories as you propose and create symbolic links

 ln -s /home/drupal/sites/cluster1/othersite1.com othersite1.com 

The way Drupal finds the site folder is explained in settings.php, read that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜