Virtual Host : The network server is divided into a certain amount of disk space for users to place the site, application components, etc., to provide the necessary site functions and data storage, transmission functions.
The so-called virtual host, also known as "web Space" is a server running on the Internet into multiple "virtual" servers, each virtual host has a separate domain name and a complete Internet server (Support www, FTP, e-mail, etc.) function. The different virtual hosts on a single server are independent and managed by the users themselves. However, a server host can only support a certain number of virtual hosts, and when this amount is exceeded, the user will feel a sharp decline in performance.
implementation principle of virtual host
A virtual host is a technology that uses the same Web server to provide services to different domain name sites. Apache, Tomcat and so on can be configured to achieve this function.
Related HTTP message header: Host.
Example: Host:www.baidu.com
When the client sends an HTTP request, it carries the host header, and the host header records the domain name entered by the client. This allows the server to confirm to which domain the client is accessing, based on the host header.
What is a virtual host