In the era of increasingly important digital marketing and brand building, many companies or individuals often need to manage multiple websites, whether it is different brands, product lines, or multi-language, regional sites.Faced with the need for multi-site content management, AnQiCMS provides a set of elegant and efficient solutions to help us easily achieve unified display and management of content.
The core concept of Anqi CMS multi-site management
The design philosophy of Anqi CMS is one of 'One system to manage all'.This means you do not need to install a separate CMS for each site, but can create and manage multiple independent sites within a single secure CMS instance.This pattern brings significant efficiency improvements: You can manage all site publishing content, user permissions, template settings, and SEO strategies under a unified backend interface.This not only greatly reduces repetitive work and operating costs, but also facilitates data sharing and resource integration across sites, ensuring consistency in brand image and content release.
Set up a multi-site environment: from zero to one in practice
To implement multi-site management in Anqi CMS, you first need to set up the environment and create a site. This process is simpler than you imagine.
Preparation WorkFirstly, make sure that all your domain names have been correctly resolved to your server IP address.Whether it is the main site domain name or the sub-site domain names to be added in the future, DNS configuration needs to be done in advance.
Create a new siteLog in to your main Aiguo CMS backend.In the left navigation menu, find and click the "Multi-site Management" feature.Here, you will see a "Add a new site" button.
- Site NameThis is the name of the site identified in the background, which can be named according to the actual business scenario.
- Site Root Directory:A very critical step. The CMS will create a separate directory for each site to store cache and other data. If you are using Docker deployment, it usually starts with
/app/}/app/dev_anqicms_comEnsure that this directory name is unique. - Website address: Enter the full URL of the new site, for example
http://dev.anqicms.com. - Administrator account passwordSet up a separate admin account and password for the new site.
- Database nameEach site will use an independent database to store its content data. Enter a database name that is not occupied, for example
dev_anqicms_com. - Database information reuseIf you install AnQi CMS in a Docker environment and want to reuse the database connection information of the main station, you can usually choose to 'reuse the default database account information' to avoid the trouble of repeated filling.
- Select the template to useYou can select a template that has been uploaded to the system for the new site, or you can change it later.
Configure Reverse ProxyAfter creating a new site, you still need to configure it on the server side, directing different domains to your secure CMS service.This is usually implemented through the reverse proxy function of web servers such as Nginx, Apache.The core idea is: Regardless of how many site domains you have, they will all be routed to the same port that the secure CMS service is listening on via reverse proxy (for example, the default port 8001).
dev.anqicms.comWhen, the reverse proxy will forward the request to the AnQi CMS port 8001, and according to the domain of the request, the AnQi CMS will internally identify that this isdev.anqicms.comSite, thus displaying its corresponding content. If you use Baota panel or 1Panel and other management tools, configuring reverse proxy will be very intuitive, just specify the domain and the listening address of the security CMS (for examplehttp://127.0.0.1:8001[en]).
Implement unified content display: cross-site call intelligence
How to flexibly display content between different sites after the multi-site environment is set up, and achieve 'uniform display'? This is exactly where the strength of Anqi CMS lies.
Content Model: The foundation for unified content structure.The Auto CMS provides flexible content model features.Even if it is different sites, you can define the same or similar content models for them (for example, article models, product models).This structural consistency is the foundation for cross-site content display.When all site content follows a similar structure, unified display and data calls will become easier.
siteIdThe clever use of parametersThe template tags of Anqi CMS are the core of unified content display. In almost all content call tags (such asarchiveListDocument list,categoryListCategory list,navListNavigation list etc.) all provide a namedsiteIdThe parameter. This means that if you want to display the content of site B on site A, you just need to use the corresponding tag in the template code of site A, and throughsiteIdParameter specifies the ID of B site. For example, if you want to display the latest product list of a child site on the homepage of the main site, you can use similar code in the main site template:{% archiveList products with moduleId="2" siteId="子站ID" limit="5" %}Through this method, you can easily display the content of any site managed under any security CMS instance on other sites, achieving truly unified content display.Support for multiple languages and template reuseIf your multilingual requirements involve multiple sites, the multilingual support feature of Anqi CMS will be very useful. You can configure independent language packages for different language sites and utilize
siteIdThe parameter loads the corresponding language content in the template.At the same time, since different sites can share templates or fine-tune based on the same set of templates, it can greatly enhance the efficiency of template development and maintenance.Unified navigation and other system settingsIn addition to the content, you can also flexibly control navigation and other system settings. Each site has independent navigation management, but if you want to unify some navigation, you can also specify it in the template.
siteIdCall navigation data for a specific site. Similarly, contact information, TDK, and other system-level settings can also be managed uniformly or differently according to the site ID.
Advantages and Efficiency Enhancement of Multi-Site Management
Using the multi-site content unification display and management solution of AnQi CMS, you will experience unprecedented operational efficiency. It not only simplifies the cumbersome deployment and maintenance work, but also throughsiteIdParameters such as these,赋予内容极高的灵活性.This makes it possible to build a complex cross-site content ecosystem accessible, whether it is in SEO optimization, brand collaborative promotion, or consistency of user experience, significant improvement can be achieved.
Common Questions (FAQ)
问:Can I use completely different templates for different sites in a secure CMS? Answer:Of course, you can.When creating a new site, you can choose a specific template.Even after that, you can independently replace and configure different templates in the background of each site, achieving differentiation in appearance and layout.
问:If I post content on one site, can I directly 'copy' it to another site?**Answer