问题描述
当我尝试使用任何连接到我的WAMP的服务器,但本地主机我得到403错误。
When i try to connect to my WAMP server using anything but localhost i get error 403.
[Tue Sep 24 10:23:06.363000 2013] [access_compat:error] [pid 2912:tid 1520] [client ip:ip:ip:ip:49886] AH01797: client denied by server configuration: C:/wamp/www/
[Tue Sep 24 10:23:06.916000 2013] [access_compat:error] [pid 2912:tid 1520] [client ip:ip:ip:ip:49886] AH01797: client denied by server configuration: C:/wamp/www/favicon.ico
我试图启动WAMP服务帐户(在Win7的X64运行)。我试图编辑在httpd.config
I tried to start the wamp services as my account (running on win7 x64). I tried to edit these lines in the httpd.config
<Directory />
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
但我仍然得到错误。
编辑:我安装WAMP(2.2E)的旧版本,一切工作正常不知道什么是在最新的版本不同(2.4)
but i still get the error. I installed an older version of WAMP (2.2E) and everything works fine not sure what's different in the newest version (2.4)
推荐答案
更改该部分回
Order Deny,Allow
Deny from all
这部分控制访问您的根驱动器,并应始终是`所有拒绝
That section controls access to your root drive and that should always be `Deny from all'
查找https.conf
Look for this section of https.conf
# onlineoffline tag - don't remove
和更改下面的部分。
Allow from 127.0.0.1 ::1 localhost
另外,还要确保您的主机文件 C:\\ WINDOWS \\ SYSTEM32 \\ DRIVERS \\ ETC \\主机
有这些条目
127.0.0.1 locahost
::1 localhost
编辑:
您其实并没有说你使用WAMP 2.4。它会帮助:
You didn't actually say you were using WAMP 2.4. It would have helped:
在这种情况下,,从wampserver的论坛,它介绍了如何修复一堆2.4的问题。
In that case, read this thread, from the wampserver forum, it describes how to fix a bunch of 2.4 issues.
这篇关于除了从本地主机Apache的403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!