修改在wampServer的localhost页面中,打开my projects的默认指向

版权声明:本文为博主原创文章,转载请注明原文出处。 https://blog.csdn.net/qq_41139830/article/details/81096562

注意:我的wampServer的版本是2.5,不同的版本配置可能不太一样!


1、进入wampServerwww目录

2、打开index.php文件

3、找到

$suppress_localhost ? 'http://localhost/' : ''

(大概在338行,没有被注释掉才对)

4、在localhost后面添加你服务器的端口即可(默认80端口)

5、改完之后,关闭wamp,重新运行重启服务是不行的!!!


END!

猜你喜欢

转载自blog.csdn.net/qq_41139830/article/details/81096562