1. Enable Include conf/extra/httpd-vhosts.conf in httpd.conf
2. Modify C:wamp64binapacheapache2.4.17confextrahttpd-vhost.conf and add the following
<VirtualHost *:80> ServerAdmin project.com DocumentRoot "C:\wamp64\www\project" ServerName project.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost>
127.0.0.1 project.com
The above introduces the settings of the apache virtual domain name, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.