Drupal Multisite 使用子文件夹 [英] Drupal Multisite using subfolder

查看:10
本文介绍了Drupal Multisite 使用子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在使用多站点的子目录中拥有另一个 drupal 站点.假设我有域 foo.example.com 和文件夹 sites/foo.example.com.我希望新站点位于 foo.example.com/bar.因此,根据设置 php 中的描述,我只需要设置一个文件夹 sites/foo.example.com.bar.

i want to have another drupal-site in a subdirectory using multisites. Assuming I have the domain foo.example.com and the folder sites/foo.example.com. I want to new site to be at foo.example.com/bar. So according to the describtion in the settings php i'd simply have to setup a folder sites/foo.example.com.bar.

嗯……我做到了.但它仍然会加载sites/foo.example.com/的站点.

Well… I did. Yet it does still load the site of sites/foo.example.com/.

我做错了什么?

推荐答案

您可能需要在 Drupal 根目录中创建一个指向自身的符号链接.因此在本例中,假设您的 Drupal 站点位于 /var/www/html 中,您将在命令行中执行以下操作:

You might need to create a symbolic link inside the Drupal root pointing to itself. So in this example, assuming that your Drupal site is in /var/www/html, you would do the following at the command line:

cd /var/www/html
ln -s . bar

这篇关于Drupal Multisite 使用子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆