Virtual Web Host
1, run multiple Web sites on one physical server, where each site is not independent
occupy a real computer
2, httpd virtual host support type
● based virtual hosting (commonly used by businesses)
● IP-based virtual host address (at least two IP on a host computer, not practical)
●-based virtual host ports
Three types: different IP, different ports, different domain name
Experimental configuration
Open a Linux, a host win7
1, provided dns master profile
2, profile settings dns area
3, data area disposed dns profile
(1) to a configuration data content kgc.com.zone
(2) to kgc02.com .zone configuration data content
4, add a virtual host configuration in a configuration file httpd
5, ready access to the virtual host of web documents
[root@www ~]# mkdir -p /var/www/html/kgc
[root@www ~]# mkdir -p /var/www/html/kgc02
[root@www ~]# echo "<h1 > this kgc web</h1>" >
/var/www/html/kgc/index.html
[root@www ~]# echo "<h1 > this is kgc02 web </h1>" >
/var/www/html/kgc02/index.html
6, httpd primary boot loader configuration file in the virtual host configuration file
7, off the firewall security features. Start httpd and named service. win 7 access to two domain names, show two different pages.