Wampserver配置多站点后无法进入localhost

来源:互联网 发布:单片机怎么和电脑连接 编辑:程序博客网 时间:2024/06/07 06:10

解决步骤
1:先为localhost配置一个站点(在httpd-vhosts.conf中)

<VirtualHost *:80>    ServerName localhost     DocumentRoot D:\wamp64\www    <Directory  "D:\wamp64\www">        Options +Indexes +Includes +FollowSymLinks +MultiViews        AllowOverride All        Require local    </Directory></VirtualHost>

但浏览器输入localhost还是无法打开localhost,直接转成启动搜索引擎进行搜索。
解决方法:输入120.0.0.1或者http://120.0.0.1 或者 http://localhost

0 0
原创粉丝点击