building a domain-based virtual host
1. first, set up a DNS server for two sites and create a new zone, respectively: www.benet.com and www.accp.com
1) Modify the configuration file
2) modifying data files
2) Restart the DNS service
2. Build Two websites
1) Prepare the Web page
2 ) Open the virtual host profile and modify the configuration file
Add the following content
3) Modify the master profile to enable the virtual host
Vi/usr/local/httpd/conf/httpd.conf
Remove the previous # number
4) restarting the httpd service
5) Accessing the virtual Web host on the client
So far, domain-based virtual hosting has been built.
!!! Note: If you cannot access it on the client, it may be that the server's firewall is open or not, or the DNS service is not restarted, or the httpd Service may not be restarted.
Linux builds domain-based virtual hosts