方法: 增加虚拟主机 Virtual Host
# Virtual Hosts
<VirtualHost *:8080>
ServerName www.test1.com
DocumentRoot C:/wamp64/www2
<Directory "C:/wamp64/www2">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Host文件 C:\Windows\System32\drivers\etc\hosts 增加域名映射
127.0.0.1 www.demo-teccomp.com
127.0.0.1 www.demo-dedecms.com
重启Apache,如果有错误,检查配置文件和日志,端口要与httpd.conf 的一致,改了端口貌似启动不。