On the Internet, virtual hosting is the provision of Web server hosting services so that a company (or individual) does not have to purchase and maintain its own Web server and connections to the Internet. A virtual hosting provider is sometimes called a Web or “space provider.” Some companies providing this service simply call it “hosting.” The virtual hosting user (the Website owner) needs only a File Transfer Protocol (FTP) program for exchanging files with the virtual host.
Some virtual hosting providers make it possible for customers to have more control of their Web site file system, e-mail names, password, and other resources and say that they are providing each customer a virtual server. That is a server that appears to be entirely their own server.
There are two main types of virtual hosting, name-based and IP based.
Name-based virtual hosting uses the hostname presented by the client. This saves IP addresses and the associated administrative overhead, but the protocol being served must supply the hostname at an appropriate point. There are significant difficulties using name-based virtual hosting with SSL/TLS.
IP based virtual hosting uses a separate IP address for each hostname, and it can be performed with any protocol but requires a dedicate4d IP address per domain name served. Port-based virtual hosting is also possible in principle but is rarely used in practice because it is unfriendly to users.
Name-based and IP based virtual hosting can be combined, a server may multiple IP addresses and serve multiple names on some or all of those IP addresses.
Types of Virtual Hosting
- Name-based Virtual Hosting
It is characterized by on one server with you, and the set of other clients of a hosting settles down. That is, when all the computer, but only its part is given to the client. One computer is divided between several clients which sites refer to virtual. It uses headings HTTP/1.1 received from the client for the definition of the name of a host. It allows many various domains to use the same IP the address.
Advantages of the name-based virtual hosting to you personally do not need to be able to be administered UNIX or WinNT since administrators HSP will make all necessary for the support of trouble-free work of a server.
- IP-based Virtual Hosting
In IP-based virtual hosting, you are running more than one web site on the same server machine, but each web site has its own IP address. In order to do this, you have to first tell your operating system about the multiple IP addresses. You also need to put each IP in your DNS, so that it will resolve to the names that you want to give those address.
The default port number for HTTP is 80. However, most webservers can be configured to operate on almost any port number, provided the port number is not in use by any other program on the server.