HOSTS is bound to the domain name and IP address, but the access IP address and domain name are different. The HOSTS & nbsp; file is bound in this way & nbsp; & nbsp; 119.57.113.31 & nbsp; the access IP address of cloudtest.cnfol.com displays such content & nbsp; the output domain name is also HOSTS bound domain name and IP address, however, the Accessed IP address and domain name have different content.
The HOSTS file is bound in this way.
119.57.113.31 cloudtest.cnfol.com
The access IP address displays such content.
This is the result of the output domain name.
In this way, enter the domain name. The operating system will first find the HOSTS file and map it to an IP address.
Therefore, the access IP address and domain name should be the same result.
GOOGLE. no answer is found !!
A host may have multiple websites, so the IP address may not be accessible and the domain name can be accessed. I understand this.
The key is to bind it to the HOSTS. I cannot figure it out.
Please explain !!!
Share: More
------ Solution --------------------
In this way, enter the domain name. The operating system will first find the HOSTS file and map it to an IP address.
You understand that.
Therefore, the access IP address and domain name should be the same result.
It is almost equivalent, but there are exceptions, that is, the two are completely different when configuring apache.
ServerAdmin ??? @ Gmail.com
DocumentRoot "D:/wamp/www/_ get.tw"
ServerName 7.7di.net
ServerAdmin ??? @ Gmail.com
DocumentRoot "D:/wamp/www/_ web.tw"
ServerName 7di.net
This is two different websites on the same server. although the two websites point to the same ip address, they are used to open different websites.
------ Solution --------------------
The key to the problem is how you configure the cloudtest.cnfol.com host.