配置虚拟主机的时候,全部指向了一个目录,解决方法是在httpd.conf中添加: NameVirtualHost *:80 转载于:https://www.cnblogs.com/Skrillex/p/7047767.html