The multi-site feature of Anqi CMS is an extremely powerful feature, which provides unprecedented flexibility for website operators. Whether it is managing multiple independent brand websites or building a content-sharing matrix, it can be handled with ease.The core of this feature lies in its ability to allow you to efficiently manage and display multiple independently operated websites under a single secure CMS system, and cleverly balance content differentiation and unity.

Understanding the multi-site capability of AnQiCMS

Firstly, we need to clarify the operation mode of the Safe CMS multi-site function.It is not referring to installing multiple CMS programs on the server, but rather to hosting and managing multiple logically independent websites through a single system.This means that you only need to maintain one backend to perform operations such as content publishing, user management, template switching, and more for all associated sites, greatly reducing redundant work and improving operational efficiency.

To enable and manage multi-sites, you usually need to complete the following steps:

  1. Domain and reverse proxy configuration:Each site needs an independent domain name.On the server level, you will route requests to the same running port of AnQi CMS from different domain names via reverse proxy (such as Nginx or Apache).For example, using the Baota panel, this involves adding a reverse proxy site for each domain in the panel and forwarding requests to the listening port of AnQi CMS (usually port 8001).
  2. Add a new site in the Anqi CMS backend:After completing the server configuration, you can enter the "Multi-site Management" feature in the safe CMS backend of the default site. Here, you can perform detailed configuration for each new site, including:
    • Site name and website address:Define the basic information of the site.
    • Site root directory:This is a key setting, each new site needs an independent root directory (for example)/app/dev_anqicms.comUsed to store the cache, specific files, etc. of the site, ensuring data isolation.
    • Administrator account password:Set independent backend management credentials for each site to achieve permission separation.
    • Database name:Assign an independent database for each site to ensure complete isolation of site data and avoid interference.The autoCMS usually supports reusing database connection information, but creating different database names is the key to achieving data isolation.
    • Select the template you want to use:Set a default template for a new site.

Through these configurations, each newly added site has an independent running foundation, laying the groundwork for the subsequent differentiation and unification of content display.

Achieve differentiated content display

When you have multiple independent brands or websites targeting different audience segments, content differentiation is a core requirement. The multi-site feature of Anqi CMS makes this very simple and intuitive.

  • Independent template system:Each site can specify a completely independent template.This means you can design completely different visual styles, user experiences, and layout structures for different sites.config.jsonCan define the type of template (such as adaptive, code adaptation, or PC+mobile independent mode), thus meeting various display needs.You can even customize exclusive templates for specific categories, articles, or single pages to make content display more refined.
  • Independent content management:In multi-site mode, each site's content is completely independent.You can publish articles, products, and pages for site A, set its unique categories and tags, and this content will not appear automatically on site B.
    • Independent content model:Different sites can have their own content models, for example, one site focuses on 'articles', while another focuses on 'product display', and their field structures and publishing processes can be different.
    • Independent classification and tag system:Each site can create a unique classification tree and tag cloud according to its own content characteristics, ensuring the clarity of content organization logic.
    • Independent single-page management:“About Us”、“Contact Information” and other single-page content do not affect each other between sites.
  • Independent site configuration:Settings such as website name, Logo, record number, contact information, home page TDK (title, keywords, description) and navigation menu, pseudo-static rules, SEO tool configuration, etc., can all be independently configured for each site.This allows each site to have its own brand identity and optimize its SEO strategies.For example, the contact number of site A may lead to the customer service of South China region, while site B may lead to the customer service of East China region.

Achieve unified or shared display of content.

Although many sites emphasize differentiation, in many scenarios in actual operation, it is necessary to display certain content uniformly or share data between sites. The Anqi CMS provides a clever mechanism to achieve this goal, with the core being the data tags insiteIdParameter.

Almost all template tags used to obtain data (such asarchiveList/archiveDetail/categoryList/categoryDetail/pageList/pageDetail, evensystem/contact/tdketc.) all supportsiteIdparameters. By specifying other sites'siteId, you can easily pull and display the data of that site:

  • Shared general brand information:Assuming you have a main brand site (Site A) and multiple sub-brand sites (Site B, C). You can use sub-brand sites to,{% system with name="SiteLogo" siteId="主品牌站点ID" %}Call the main brand's Logo uniformly, or display the main brand's filing number uniformly in the footer.
  • Uniformly display contact information:If all child sites use the same contact phone number or email address of the headquarters, you can use the same template in each child site,{% contact with name="Cellphone" siteId="总部站点ID" %}Ensure that the displayed information is always consistent. Once the headquarters information is changed, it only needs to be modified in one place.
  • Cross-site content reference:
    • News announcement sharing:You may want all sites to display the latest company news announcements. Simply post these news on a specific site (such as the "News Center" site), and then on the homepage or sidebar of other sites,