Serving multiple sites with one drupal (not using multiple sites)

I am looking for expert advice on how to best serve multiple sites with a single Drupal instance (using Pressflow 6.x). Let's take a look at the fact that a company needs this, called the “ABC Group of Companies,” and it has 3 problems with its sister. So, there will be four sites in total:

  • www.abcgroup.com
  • www.company-a.com
  • www.company-b.com
  • www.company-c.com

Here is the most interesting:

  • Users will be available to all users sites
  • Each site will "mainly" post its own content (for example, welcome text on the home page or menu items - different for each site).
  • Some content will be displayed on all sites (say, in the notification of the entire company .... or in the employee’s directory).
  • The theme for each site will be different.

Now I’m thinking about a DNS record, so each of the domains points to the same Drupal installation, and when Drupal boots up, I would like to sniff the $ _SERVER array to find out which site hit. Then I would like to download the theme accordingly, show content specific to this site, and also show content that will be available for all sites.

, node "" . (, ) node "" , , . .

Contexts, Spaces, PURL - , , , . , ?

, - .

,

Emran

+3
3

, , - , , , , ? , . , . , , ​​ , , .

, !

http://drupal.org/project/domain

+5

, (+1). / , .

-, , , , , - ( ), , "" .

, , ( ;), custom_url_rewrite_inbound()/custom_url_rewrite_outbound(). URL- , URL-, , URL-, , .

, " " , ?

+4

, . ? , Domain Access 1 . .

I give Domain Access two thumbs up, but just make sure you really need what it actually does.

Also, I would look at Feeds.module. You can pull content from anywhere (especially another drupal site), and it imports it directly and automatically creates nodes and fields from it.

0
source

Source: https://habr.com/ru/post/1770355/


All Articles