The first step, since I have configured the dns in advance, you can check my articles from the past few days. Then I add an IP address first.
vim /etc/sysconfig/network-scripts/ifcfg-ens33
Restart the service. Make it effective.
systemctl restart network
In the second step, add two more sites, web5 and web6 directories, and write the content respectively.
The third step is to edit the forward file zheng. This is my custom name. You can also name it whatever you want. After entering, the conditional alias is recorded as follows.
web5 CNAME www alias record web5 corresponds to www.
There are also reverse files, which are also recommended to be added.
Just save and exit.
Then restart.
systemctl restart named
The fourth step is to test the dns configuration.
The fifth step is to edit the previous vt.conf file.
vim /etc/httpd/conf.d/vt.conf
Add the following records.
The sixth step is to restart the httpd service.
systemctl restart httpd
You can access it in step seven.