Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why can't the virtual host be accessed directly with IP?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "Why the virtual host can not be accessed directly by IP". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A virtual host, as its name implies, is a virtual host, that is, multiple hosts can be virtualized on a server, and each host corresponds to a website (which can be accessed by multiple domain names).

And IP address, for hosts on the Internet, each host in the world has only a unique IP address, just like you have a unique × × number in China. When multiple virtual hosts correspond to an IP address, there will be a problem (can not correspond to different website directories), how to access it?

This is the time to use the domain name! Domain name is something used to solve this problem.

We need to bundle our domain name on the virtual host, then resolve it to the host IP where the virtual host is located in the control panel of the domain name, and then bind your domain name in the virtual host control panel, so that your website can be accessed in the IE browser through the domain name.

How does this process come true? Let me say it briefly.

First, you type in your website address, that is, your domain name, in the IE browser.

At this point, the packet will be sent to the name resolution server (this is a public server on the Internet) and get your domain name resolved IP address. There are no worries on the Internet.

Then, the packet will take your domain name to your host IP address.

Finally, arrive at your host IP address, give the domain name to a program called IIS in the host, tell him to access the website content of this domain name, and the IIS program will return the page content corresponding to this website directory to your IE browser interface, and your website will be rendered. If it is the same IP, it is impossible to distinguish between different website directories, you can add different ports after the IP address to correspond.

This is the end of the content of "Why the virtual host can not be accessed directly through IP". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report