HOSTS is bound to the domain name and IP address, but the access IP address and domain name are different from the content

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.