Build a virtual web host
First, based on domain name
1. Configure LAN
Virtual Machine 1
Virtual Machine 2
2. Restart card and view
Virtual Machine 1
Virtual Machine 2
3. Create a directory, and mount the drive switch to download directory and bind packages
herein described insert pictures
4. Close the firewall and sandbox
5. Edit Main Profile global configuration portion
6 in the main configuration file editing area profile section
7. switch to the profile area data storage path
8. Copy and renamed
9. Forward analyzing and editing abc.com
10. Forward analyzing and editing 123.com
11. Switch to a local view and extract package
unpack and install into the package
12. Specify the installation path, open dynamic load modules, launch the web address, start rewrite function, support Chinese character set to start, start the cgi script support to facilitate the ability to extend application access site
13. Configure YUM, create a new directory, file transferred to the specified directory and edit the file, install yum
Successful installation
14. Specify the installation path, open dynamic load modules, launch the web address, start rewrite function, support Chinese character set to start, start the cgi script support to facilitate the ability to extend application access site
15. compile and install
16. Edit virtual host the main configuration file
17. Create and edit documents and 123 abc
edit
to change the folder and edit
18. Create and edit separate profiles
19. restart apache service and view
20.2 DNS configured in the virtual machine
21. Turn off the firewall and sandbox in the machine in the service and restart the named service
And then verify that success in the virtual machine 2
Second, based on IP
1. Configure IP hosts on apache
2. Modify the separate profile IP
3. Restart the apache service
4. Check verification
Third, based on the port
1. Modify the IP independent profile
2. Modify the virtual host configuration file
3. Restart the apache service
shut down apache service
open apache Service
View
4. Verify the client in