Virtual domain name is actually a kind of virtual host.
The advent of virtual hosts is to save hardware investment. If an ISP uses a separate machine for each user who has applied for a domain name, it is obviously expensive and wasteful for a site that is not very frequently visited. So it appears that everyone is a common machine, but each user is independent of each other, the function is identical with own host.
The virtual host is divided into two types based on IP address (ip-based) and name based (name-based).
Virtual host based on IP address everyone although on the same machine, or to each domain name to configure a separate IP address, so it seems not to be considered a very ideal solution. Is there a machine, an IP address, and the ability to implement a separate domain name?
The idea was realized with the advent of the http/1.1 protocol. It is the principle of using WEB servers and browsers to achieve the virtual domain name and corresponding directory or site. This allows users to enter a different name in the browser, although the DNS server to resolve the same IP, but get a different content. It looks like two separate domain names. So this name-based virtual host is also known as a non-ip (non-IP). There is also a useful way to give a long URL a good and meaningful alias. This is the virtual domain name.
There are two areas of support for implementing virtual domain names:
One is the WEB server:
There are now a number of WEB servers that support a virtual host based on names. Like Netscape, IIS, etc. are supported. Of course the most used is the Apache Web server, the reason is because it is easy to configure, or free, and it is the first implementation of the name of the virtual host server products.
The second is the user's browser:
I think most of you should be using more than 3.0 version of IE or Netscape, then there is no problem, they are supported.
Now let's take a look at how to implement the virtual domain name under NT:
The first step is to get the DNS server to know the domain name you want to add, that is, to interpret it as a corresponding IP address. Because we rely on a Web server to differentiate domain names, this IP address is naturally managed by your Web server.
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.