WordPress knowledge sharing

How does ECS bind multiple domain names to build multiple websites

ECS binds multiple domain names to build multiple websites How to operate? This is what many novices will ask, for example, a 1-core 2G host, building a website will have a lot of system resources free; Or if users are going to build multiple websites, they need to operate ECS to bind multiple domain names to build multiple websites. This article mainly shares the operation process and some points that need attention in the operation process.

Domain name, server, panel, program

The domain name and server should be prepared first.

1. Domain name: domestic websites must be registered with domestic domain name providers, such as Alibaba Cloud Tencent Cloud For example, the real name of a domain name is required to be registered in China. If foreign trade websites recommend registering domain names abroad. open Namesilo official website , enter the domain name to be registered in the search box, select it and then register. Remember to use the discount code to save money before paying. Discount code click Course of domain name registration of foreign domain name provider Namesilo obtain.

2. ECS: If you choose a domestic server, you need to apply for website filing. If you choose a foreign server, you don't need to.

3. Configuration: According to the long-term experience in building the station, Lao Wei suggests using 2 cores and 4g to run smoothly.

Domestic servers: Alibaba Cloud Tencent Cloud (All have vouchers, which can be used to save money when paying)

Foreign servers: Click me to log in Vultr host

I don't know how to select regions and configurations. Please add Lao Wei's contact information on the right side of the page. Let's study it together.

Selected explosives area
618 Zhongshenghui Click to view the purchase
Selected preferential activities Click to view the purchase
Tencent Cloud Preferential Products Zone Click to view the purchase
Cross border e-commerce store server Lightweight application server
Tencent Cloud Animal Palu Game Server Click to view the purchase
For more Tencent Cloud content, please see Tencent Cloud

4. Panel: The website program runs in the site building environment, which we generally call: site building panel, environment panel, one click environment package, etc. At present, the popular visual site building panel in China is the pagoda panel.

Friends who have not installed the pagoda panel, please Click me directly On the pagoda panel official website, remember to register the pagoda official account and bind it to the pagoda panel of your server, so that new users can enjoy the professional version of 0.99 yuan for one month.

Lao Wei suggested that the pagoda panel is suitable for novices and Xiaobai to build a website, and supports Linux and Windows systems, Click to go directly to the pagoda website
Pagoda Linux Enterprise Edition Click Direct
Pagoda Linux Professional Click Direct
Pagoda Nginx firewall Click Direct
Pagoda Windows Enterprise Edition Click Direct
Rui Anxin DV SSL Certificate Click Direct
Recommended selection of pagoda panel Alibaba Cloud Tencent Cloud The server
For more information, see Special topic of pagoda panel
Click to view NetEase Cloud Classroom "Introduction to Pagoda Linux Panel for Novice"

5. Program: wordpress can be downloaded, installed and used for free.

6. The website filing is not mentioned in this article. All servers in the mainland need to apply for website filing, and servers outside the mainland, including servers in Hong Kong, do not need to be filed. They can be bought and used immediately.

Domain name resolution

Go to the management background of the registered domain name merchant, find the domain name resolution, and add A records or Cname records. The A record corresponds to the server IP address, and the Cname record corresponds to the cdn url.

The domain name generally uses the @ domain name (also called the main domain name), such as vpss.net; Or the www domain name, such as www.vpss.net. You can resolve both domains to the server IP, and then do 301 redirection in the pagoda panel.

As shown in the figure below, Alibaba Cloud domain names add A records. After you click Add Record, you complete the process of adding A records for the primary domain name and the www domain name.

 Alibaba Cloud Domain Name Add A Record
Alibaba Cloud Domain Name Add A Record

If there are multiple domain names, add A records separately, and they will all be resolved to the same server IP address.

This is just the domain name management step. Next, we go to the pagoda panel to bind multiple domains.

The pagoda panel binds multiple domain names

In Pagoda Panel>Website>Add Site, add the main domain name and www domain name, and select the database and php version.

 Pagoda Panel Website Add Site
Pagoda Panel Website Add Site

Construction of pagoda panel station

The next step is to upload site building programs, install and deploy, set up programs, and build sites for each website. Reference for details Pagoda panel One click deployment Source code installation Complete process of WordPress

Tip: If all programs are wordpress programs, the database name prefix should not be the same. For example, the default value is wp_, and others can be selected randomly or according to the domain name for easy differentiation.

If the website building program you use is in the "One click deployment" of the pagoda panel, you can skip the above step and directly bind the domain name+auto install website in the one click deployment. For details, you can check what Lao Wei wrote One click deployment and site building tutorial of pagoda panel

Final summary

ECS binds multiple domain names to build websites It is very simple. You will resolve a domain name to build a website, and you will deploy multiple. In the later stage, we should pay more attention to whether the load, CPU and memory of the pagoda panel can support so many websites. If the load and CPU are more than 80% for a long time, we should find out the reason, whether it is attacked or the sheer number of website visits exceeds the capacity of the server. Then we should consider upgrading to a higher configuration.

Like( zero )
Article name: How does ECS bind multiple domain names to build multiple websites
Article link: https://www.vpsss.net/21849.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.