WAMP:URL中缺少http://localhost/,错误的Wamp项目链接 [英] WAMP: Missing http://localhost/ in urls , wrong wamp projects links

查看:106
本文介绍了WAMP:URL中缺少http://localhost/,错误的Wamp项目链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了Wamp的问题,以前从未在我身上发生过,无法找到问题所在.我的www文件夹中有一些项目(运行Windows 7).

I have a problem with Wamp which never happened to me before, cannot find what's wrong. I have a few projects located in my www folder ( running windows 7 ).

我的主机文件中有127.0.0.1 localhost行未注释

My hostfile has the line 127.0.0.1 localhost uncommented

当我转到http://localhost/http://127.0.0.1/并在Wamp面板主页面上单击项目名称(如"mysite")时,链接仅指向"mysite",而不是"http://localhost/mysite"

When I go to http://localhost/ or http://127.0.0.1/ and click on a project name like "mysite" from the main Wamp panel page, the link just points to "mysite" and not "http://localhost/mysite"

因此,我看不到任何网站,该怎么办?

Therefore I can't see any sites, what should I do ?

推荐答案

经过深入研究,我发现了同样适用于我的解决方案.

After thorough research, I found out the solution which worked for me as well..

open wamp/www/index.php.

更改此行:

$suppress_localhost = true;

收件人:

$suppress_localhost = false;

这篇关于WAMP:URL中缺少http://localhost/,错误的Wamp项目链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆