Hosts bind domain name and IP, but access IP and domain name, out of the content is not the same
The HOSTS file is so bound
119.57.113.31 cloudtest.cnfol.com
The access IP appears to be such content
The output domain name is again the result
I understand that, enter the domain name, the operating system will first go to find the Hosts file, and then mapped to an IP address.
so access to IP and domain names should be identical results.
Google, did not find the answer you want!!
There may be multiple sites on a host, so access to the IP may not be accessible, access to the domain name. I understand that.
The point is that it's tied to the hosts. I can't figure it out.
Ask for explanation!!!
Share to: more
------Solution--------------------
I understand that, enter the domain name, the operating system will first go to find the Hosts file, and then mapped to an IP address.
You understand that, right?
So access to IP and domain names should be identical results.
is almost equivalent, but there are exceptions, that is, when you configure Apache, the two are very different, you see the configuration below
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 sites on the same server, although two URLs point to the same IP, but they are used to open different websites
------Solution--------------------
The key to the problem is how you configure the cloudtest.cnfol.com host