Drupal多站点设置与子目录

时间:2011-01-21 20:45:19

标签: drupal subdirectory single-instance

我有一个包含单个代码库的多站点设置。 是否可以使用子文件夹将我的站点目录设置为: mysite.com在/home/drupal/sites/mysite.com

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

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

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

othersite4.com在/home/drupal/sites/cluster2/othersite4.com

我正试图找到一种方法来组织我的所有网站。

感谢

1 个答案:

答案 0 :(得分:0)

如果您使用的是Drupal 7,则可以执行此操作。在sites文件夹中有一个名为sites.php的文件,您可以为站点的路径添加别名。如果你正在使用< Drupal 7你可以按照你的建议创建目录并创建符号链接

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

Drupal找到站点文件夹的方式在settings.php中有解释,请阅读。

相关问题