ECS binds multiple domain names to build multiple websitesHow 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.
The domain name and server should be prepared first.
1. Domain name: domestic websites must be registered with domestic domain name providers, such asAlibaba Cloud、Tencent CloudFor example, the real name of a domain name is required to be registered in China.If foreign trade websites recommend registering domain names abroad.openNamesilo 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 clickCourse of domain name registration of foreign domain name provider Namesiloobtain.
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.
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.
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, pleaseClick me directlyOn 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.
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.
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.
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 wroteOne click deployment and site building tutorial of pagoda panel。
Final summary
ECS binds multiple domain names to build websitesIt 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.
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.