安装完 wAMP 后,能用127.0.0.1 访问,但不能用localhost访问,能ping localhost,hosts文件也没问题

2025年05月06日 19:45
有2个网友回答
网友(1):

到你的apache 文件夹下面 有个 httpd.conf
在最后没加上

ServerName local !这个为虚礼域名 随便设置即可
ServerPath d:/htdocs
DocumentRoot d:/htdocs

希望能够帮助你

网友(2):

用window 自带IE 浏览器 试试http://localhost