One, add the service port
In the file apache\conf\httpd.conf, remove the previous # number and restart
#LoadModule rewrite_module modules/mod_rewrite.so #Include conf/extra/httpd-vhosts.conf
Second, in the file apache\conf\extra\httpd-vhosts.conf file, modify the corresponding configuration inside:
Namevirtualhost *: the<virtualhost *: the>ServerAdmin [email protected] documentroot"D:/wamp/www/lee"ServerName www.lee.com Serveralias www.dummy-host.localhost errorlog"Logs/dummy-host.localhost-error.log"Customlog"Logs/dummy-host.localhost-access.log"Common</VirtualHost>Namevirtualhost*:8001<virtualhost *:8001>ServerAdmin [email protected] documentroot"D:/wamp/www/limei"ServerName www.limei.com errorlog"Logs/dummy-host2.localhost-error.log"Customlog"Logs/dummy-host2.localhost-access.log"Common</VirtualHost>
Third, open the C:\WINDOWS\system32\drivers\etc\hosts
127.0. 0.1 localhost127.0. 0.1 www.paidad.cn
Apache Virtual Machine vhosts C:\WINDOWS\system32\drivers\etc\hosts