- According to the main articleBuild the CentOS basic environmentfor
Domain name Configuration Resolution
.
1. Domain name resolution
-
After Nginx is installed on the cloud server and can be accessed through public IP addresses, domain names are required.
-
Then go to Ali, Tencent…. Purchase a favorite domain name, and then directly online real-name authentication, wait for the approval, after passing the domain name click the resolution operation
-
After entering the parse page, click Add Record
There is no other requirement, fill in a host record and record value (public IP) on the line, there are instructions, not clear on the default to keep on the line.
-
The WWW, @, * can be matched with the analysis
-
* According to the needs of the configuration, the configuration is equivalent to the domain name (DZm.cn) add anything in front of the can be identified, for example, the domain name dzm.cn, in the browser input XXX.dzm.cn can be accessed dzM.cn.
-
After the configuration is complete, it takes about 10 minutes for the configuration to take effect. You can directly access the domain name or ping the domain name to test whether the configuration succeeds.
2. Add a secondary domain name
-
For example, the applied domain name is dzm.cn. Erji is user-defined, and xxx.cn is fixed. The applied domain name is erji.dzm.cn.
-
However, in adding records, you only need to write the custom part, not all, so the following figure only writes erji, which is erji.dzm.cn when you use it.
-
If server_name is set to erji.dzm.cn, you can restart the server to access erji.dzm.cn.
Three, the domain name record
-
If the domain name is not registered, you need to record before you can access, otherwise the access will fail, prompting you need to record
-
Find the record option and follow the process to record. You need to prepare id card, domain name certificate and residence permit (Shanghai area needs to provide). Tencent Cloud side of the personal record needs to small program above!
-
Domain Name Certificate Download
-
Fill in the information according to the prompts, will be prompted to enter the audit, later will be on your phone verification, pay attention to answer the phone.
-
After successful audit, you can access your server through the domain name!