php:Forbidden You don’t have permission to access / on this server.

今天新来的同事装了个wamps(我一直觉得做开发能少用这种全功能开发环境,自己单独配置环境是最好的),因为每个人的习惯不同,并且赶紧上手交接走人的心态,所以就没强要求他不要用wamps了。
因为一些问题,我想在我自己的电脑上登录他电脑上的php环境(我们办公室里用局域网),他电脑IP是:192.168.0.10,我输入:http://192.168.0.10 却爆出错误:Forbidden You don’t have permission to access / on this server.
他本机上运行:127.0.0.1和localhost都没问题,但我远程登录就不可以了。
按照网上有些人的说法,把:

<Directory />

Options FollowSymLinks

AllowOverride None

Order deny,allow

Deny from all

Satisfy all

</Directory>

改成

<Directory />

Options Indexes FollowSymLinks

AllowOverride None

Order deny,allow

Allow from all

Satisfy all

</Directory>

还是不行,后来我把 Directory 带配置路径的这个地方改了,标红的为添加的,标紫色的是屏蔽的:

<Directory “C:/wamp/www”>

#

# Possible values for the Options directive are “None”, “All”,

# or any combination of:

# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI

MultiViews

#

# Note that “MultiViews” must be named *explicitly* — “Options

All”

# doesn’t give it to you.

#

# The Options directive is both complicated and important.

Please see

# http://httpd.apache.org/docs/2.2/mod/core.html#options

# for more information.

#

Options Indexes FollowSymLinks

#

# AllowOverride controls what directives may be placed in

.htaccess files.

# It can be “All”, “None”, or any combination of the keywords:

# Options FileInfo AuthConfig Limit

#

#AllowOverride all

AllowOverride none

#

# Controls who can get stuff from this server.

#

# onlineoffline tag – don’t remove

Order Allow,Deny

Allow from all

# Allow from 127.0.0.1

</Directory>

关于 beeboo

瘦仔,很傻很坚强
此条目发表在 php 分类目录,贴了 , , , , 标签。将固定链接加入收藏夹。

php:Forbidden You don’t have permission to access / on this server.》有 5 条评论

  1. jig CHINA Google Chrome Windows 说:

    按照您说的方法试了一下,还是不行的,提示Forbidden

    You don’t have permission to access / on this server.

  2. 玉环论坛 CHINA Internet Explorer 说:

    写的挺好的。有空我会常来看看你的博客。同时希望和博主交换一个友情链接,如果可以的话,在我的留言本里给我留个言或者可以加我的QQ。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>