1、httpd-vhosts.conf添加虚拟机
DocumentRoot "D:/Program Files (x86)/wamp/www/"
ServerName test.local.com
Options Indexes
AllowOverride all
2、Include conf/extra/httpd-vhosts.conf去掉前面的#,开启功能
3、C:\Windows\System32\drivers\etc\hosts
添加:127.0.0.1 test.local.com
重启服务器即可。
宠物免费领养小程序,欢迎来踩