wamp 没法打开localhost:The requested URL / was not...

wampserver 的Apache启动错误提示:The requested URL / was not found on this server.php

今天在作本地PHP项目的时候,想把以前wampserver的本地虚拟服务器环境访问方式改成本地localhost访问方式,打开wampserver的Apache中的http://localhost/显示以下错误,提示The requested URL / was not found on this server.(在服务器上找不到请求的URL),百度各类方法都未解决,不少人的方法都是不加验证的复制粘贴别人的东西,根本就不能解决问题,这里顺便鄙视一下某度。html

wampserver  的Apache启动错误提示:The requested URL / was not found on this server.

后来仍是在老美的网站上找到了一句话:服务器

wampserver  的Apache启动错误提示:The requested URL / was not found on this server.

提示把Apache的配置文件httpd.conf中的Include conf/extra/httpd-vhosts.conf改成#Include conf/extra/httpd-vhosts.conf,顿时恍然大悟,确定是由于以前我配置了“wampserver的本地虚拟服务器环境”,而如今我想把本地项目访问从虚拟环境访问(www.wanysys.cc这种方式)改成用http://localhost/这种方式访问,因此致使服务器找不到用户请求的URL,最后,按照上面的提示更改后重启wampserver的Apache服务,发现wampserver的Apache本地访问成功了!!!wampserver  的Apache启动错误提示:The requested URL / was not found on this server.素梅好翔博客 , 版权全部丨如未注明 , 均为原创 , 转载请注明出处:http://www.wanysys.cc/coding/php/800.html网站

相关文章
相关标签/搜索