Home > Article > Backend Development > How to set the server domain name?
How to set the server domain name
We purchased the server, how to access the server through the domain name, this requires setting Domain name resolution, resolve the domain name to the IP address of the server.
Next, use the Alibaba Cloud Wanwang domain name console to demonstrate how to resolve it.
1. Open the Alibaba Cloud website and log in to the management console, then click the domain name menu on the left to enter.
2. In the domain name console, select the domain name we need to resolve, and click Parse to enter the parsing settings page.
3. Then on our domain name resolution settings page, click the Add Resolution button on the right.
4. Then fill in the corresponding information on the add parsing page. The default record type is A. The host record uses www. The parsing line does not change. The record value is the cloud we purchased. The public IP assigned by the server and the TTL value remain unchanged. After filling them in, click Confirm.
Wait a moment and you can access our server through the domain name. Here it is accessed through www.domain name.com. If you want to access through domain name.com , you need to add another A record, fill in @ for the host record, and leave the others unchanged.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of How to set the server domain name?. For more information, please follow other related articles on the PHP Chinese website!