Virtual host refers to the implementation of multiple domain service methods through virtual related technologies in a single host/host group, running multiple websites/access technologies. It is to allocate a certain amount of disk space in the network server for users to place sites, application components, etc., supporting site functions and data storage, data functions, etc. Below, the editor will share with you about the types of virtual hosts on HTTP servers?
There are three types of virtual hosts on the HTTP server:
1、 Dynamic Virtual Host
Dynamic virtual hosting allows users to dynamically add websites (host names) by adding content directories. This dynamic virtual host is only based on automatically inserting the IP address and Host: header content into the pathname of the component. The disadvantage of dynamic virtual hosts is that they cannot set different log files for each virtual host. And the advantages are:
1. The configuration file is smaller. Can start the server faster and consume less memory;
2. Adding a virtual host does not require changing the configuration or restarting the host. Virtual host based on IP address
2、 Name based virtual host
A name based virtual host can have IP addresses host multiple web sites (host names). This method allows for an unlimited number of hosts, and the hardware and software configurations are very simple. The main drawback of this method is that the client needs to support HTTP 1.1/HTTP 1.0 with 1.1 extensions, including HTTP documents. Most browsers' latest versions support HTTP 1.1/or HTTP 1.0 with 1.1 extensions, and there are still old browsers that only support HTTP 1.0.
3、 Virtual host based on IP address
Virtual hosts based on IP addresses require each site to have an IP address, which allows each virtual host to be assigned a dedicated IP address with a higher security factor.
In summary, there are three types of virtual hosts on HTTP servers. If you need to learn more, you can visit Jtti's official website!