WampServer中的主机名错误

时间:2014-12-24 10:32:35

标签: php wamp

我在系统中安装了 Wamp 。并非所有情况都发生了:当我在网址中输入localhost时。我得到了WampServer默认索引页面:

WampServer default index page

但是当我点击测试 -Project-Link时,网址会更改为“http://test/”并显示错误消息

此网页不可用

但是,当我直接在网址中输入http://localhost/test/时,页面就会按照我的意愿获得。

1 个答案:

答案 0 :(得分:1)

只需打开您的www文件夹,打开index.php和第30行:

更改:

$suppress_localhost = true;

致:

$suppress_localhost = false;

有关此问题的更多信息,请参阅此link

相关问题