Home>Article>Operation and Maintenance> Does the virtual host support apache?
Does the virtual host support apache?
The term virtual hosting refers to running multiple websites (such as www.company1.com and www.company2.com) on a single machine. Virtual hosts can be "IP-based", with one site per IP, or "name-based," with multiple sites per IP. The fact that these sites are running on the same physical server is not obvious to end users.
Apache is the first server to support IP-based virtual hosting. Apache version 1.1 and newer supports both IP-based and name-based virtual hosts. Name-based virtual hosts are sometimes referred to as host-based or non-IP virtual hosts.
The following is a list of documentation pages that explain all the details of supporting virtual hosts in Apache 1.3 and newer.
Virtual host support
Name-based virtual host (multiple sites per IP)
IP-based virtual host (one per IP Site)
Virtual host sample
File handle limit (or too many log files)
Dynamically configured large-scale virtual host
Virtual host matching In-depth discussion of
Configuration directives
NameVirtualHost ServerName ServerAlias ServerPath
If you want to debug virtual host configurations, you will find the Apache command line parameter -S very useful. That is, enter the following command:
/usr/local/apache2/bin/httpd -S
This command will show how Apache parses the configuration file. Careful inspection of the IP address and server name may help you find configuration errors (see the httpd program documentation for additional command line options).
ps: This translation may be out of date. To learn about recent changes, please read the English version.
For more Apache related knowledge, please visit theApache usage tutorialcolumn!
The above is the detailed content of Does the virtual host support apache?. For more information, please follow other related articles on the PHP Chinese website!