test1,test2正常,可local host打不开了,该怎么整?求大神们帮帮忙
<VirtualHost *:80>
DocumentRoot "E:\ecshop"
ServerName ecshop.com
ServerAlias
<Directory "E:\ecshop">
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
vhosts.conf 文件中这样写.
hosts文件中 这样写:
127.0.0.1 ecshop.com.
如果想多配置虚拟域名的话,复制vhosts.conf那句话 然后修改下你的文件位置.另外hosts文件中对应你的虚拟域名.
望采纳.