[英]Multisite configuration Drupal
I'm new at Drupal and i'm facing a issue related to the tree using multisites.我是 Drupal 的新手,我正面临一个与使用多站点的树相关的问题。
My current tree is this way:我目前的树是这样的:
__docroot
|__sites
|__all
|__site1
|__src
|__modules
|__themes
|__settings.php
and i would like to know where do i set to Drupal see the site1
and expose the site to be acess by localhost
我想知道我在哪里设置 Drupal 查看site1
并将站点公开以供localhost
访问
I can't change the folder structure to remove the src
because its a repository setting.我无法更改文件夹结构以删除src
因为它是一个存储库设置。
In Drupal 7 it's supposed to be like following.在 Drupal 7 中,它应该如下所示。 And it's not object-orientied.而且它不是面向对象的。 So no src/Controller
etc.所以没有src/Controller
等。
sites/all
carries all contrib and custom themes and modules that are enablable by every multi-site instance individually. sites/all
携带每个多站点实例单独启用的所有 contrib 和自定义主题和模块。
__docroot
|__sites
|__all
| |__modules
| | |__contrib
| | | |__devel
| | | |__views
| | |__custom
| | |__my_module_abc
| | |__my_module_xyz
| |__themes
| |__contrib
| | |__bootstrap
| |__custom
| |__my_bootstrap_subtheme
|__default
| |__files
| |__settings.php
|__site1
| |__files
| |__settings.php
|__site2
|__files
|__settings.php
In Drupal 8 it's a little bit different and it's object-oriented.在 Drupal 8 中,它有点不同,它是面向对象的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.