Feature preview

Feature Introduction

How can things be shared between multiple brand websites managed by the same backend?

When managing multiple brand websites with a single backend, the boundaries of shared and independent layers are divided into three: the operation layer (deployment instances, listening ports, cache) is usually shared, the structure layer (content model, classification, template) is configured independently per site, and the data layer (documents, attachments, users and permissions) is isolated according to the site's ownership. Shared instances do not mean shared data; to determine whether to split the site or use the content model, consider whether the brand differences affect the structure and data layers.

Site isolation Multi-site

Feature Introduction

When managing multiple brand or theme sites with a single backend, which accounts, templates, and attachments can be shared and which must be independent for each site? The answer is divided into three layers: the runtime layer usually shares the same instance, the structure layer is configured independently per site, and the data layer is isolated according to site ownership. The most common misunderstanding is to understand 'sharing a single backend' as 'mixing all resources together', but the actual boundary is in the data layer.

What does multiple sites solve: isolation or reuse?

Support for managing multiple independent sites within the site, the applicable scenarios are multi-brand and multi-theme websites. It provides two things: on one side is reuse, a set of backends, a set of operation and maintenance actions, and one upgrade covers all sites; on the other side is isolation, each site has its own structural configuration and data ownership. Reuse is the operating cost, and isolation is content and permissions. Use this sentence as a benchmark, and it is basically determined whether specific resources should be shared or divided.

Operation layer: one instance with multiple sites

The deployment form determines the boundary of this layer. The site supports one-click deployment via Baota panel, command line deployment, and Docker images, among other methods. The default port is 8001, and reverse proxy and certificates are usually configured on the same machine. The shared benefit of this layer is that an upgrade covers all sites, backup and recovery follow a single process, and monitoring indicators are centralized. It should be noted that shared runtime does not mean that logs are mixed together; access logs and error troubleshooting still need to be able to differentiate by site, otherwise, a single site issue can slow down the identification of all sites.

Structure layer: models and templates are divided by site.

The content structure follows a customized content model, where pages of the same type can be organized by fields. In a multi-brand scenario, the structural layer needs to be configured per site: product parameters, case fields, and column levels of different brands are often inconsistent. Combining them into a single model usually results in each site not using the fields they need. The same applies to templates - shared components are fine, but each site's theme and display structure should be independent. A practical standard for deciding whether to split a site is: if the content model field differences between two sites are significant, the cost of struggling with a single model is higher than the cost of independent configuration for each site.

Data layer: to whom do documents and attachments belong?

Documents, attachments, users, and permissions belong to the data layer, and they must have a clear site affiliation. Attachments should be able to show which sites reference them, so that when deleting a site or migrating, one knows which files can be cleaned up; when setting access permissions for users in VIP groups, the scope of the group's effect should also be limited to within the site, otherwise, the membership identity of one brand may appear on another brand's page. Backups also fall into this layer: data and static files are backed up together, so that the content and materials of a site can be completely restored, rather than restoring a pile of broken links.

Resources Can usually be shared Must be independent per site
Deployment instances and ports Is Split when isolation performance is required
Certificate and reverse proxy Is Configure separately when domain strategy is different
Upgrade and backup process Is Select recovery scope by site
Content model and fields Reusable when structures are similar Each site has a set when brand differences are large
template and theme Public components Site display structure
Documents, attachments, users No Isolation according to site ownership

When to use an independent site and when to use model differentiation

For similar businesses and different product lines under the same brand, it is more cost-effective to differentiate within the same site using a content model: a set of navigation, a set of permissions, and a single content review rule. Brand differences are reflected in domain names, languages, settlement methods, or user systems, and it is advisable to open an independent site. The gray area is for such categories as 'same group but different positioning', and it is recommended to judge according to two questions: whether the site needs an independent external address and language configuration, and whether the users and content of the site will be mutually referenced by another site. If both questions are negative answers, model differentiation is usually sufficient.

Common questions

What are the consequences of mixing attachments in multi-site?It is difficult to determine ownership during cleanup and migration, which often leads to situations where something is deleted but still in use, or left without anyone referencing it, and the backup size will also increase accordingly.

Can a template be used simultaneously for three brand sites?Public components can be reused, and the display structure separated by site is more stable; forcing them to be used together will make it difficult to make adjustments when each site needs it.

Will an issue with one site affect other sites during the upgrade?The upgrade action under the same instance covers all sites, so backup checks before the upgrade and site-by-site verification after the upgrade must be done, and you can roll back by site if there is an issue.

Related functions

Preview

How often does the backend login status expire, and how should the session duration be balanced?

How often does the background login status expire, essentially weighing two directions: the longer the session, the smoother the operation, but the longer the window of opportunity for stolen credentials to be used. The signature token itself has an expiration semantics, combined with the interface exposure range set according to the intent domain and round-level operation confirmation, can bring the risk of long sessions back to an acceptable range. In a high-risk repair, it is necessary to rotate the server signature key and change the administrator's password at the same time, changing only one item is equivalent to leaving half a door open.

Preview

Will the preview link of the draft be stolen, how should the preview parameters be closed?

Will the link of a draft or pending publication content with preview parameters be caught by a spider, depending on three things: whether the address can be guessed, whether the crawling rules cover it, and whether the server checks the status when reading the details. The crawling exclusion rules are just suggestions and cannot block the addresses that have already been shared; the real closure should be based on the status check and the preview parameters only taking effect in authorized sessions. After making changes, use the search engine site information to check for missing pages.

Preview

How are the addresses of multilingual sites arranged, and are the translations and the original texts under the same domain?

There are three common forms of address arrangement for multilingual websites: path prefix under the same domain, subdomain split by language, and independent domain for each language. The path prefix has the least maintenance, and it is the easiest to express the switching between languages; subdomain and independent domain will split the host ownership, and configuration and verification need to be done separately. The site supports configuration and switching of multilingual sites, full-page HTML translation, and the pseudo-static rules should be able to cover all language paths.