博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Forbidden You don't have permission to access / on this server.
阅读量:5869 次
发布时间:2019-06-19

本文共 2041 字,大约阅读时间需要 6 分钟。

原文:

Forbidden

You don't have permission to access / on this server.
当出现此问题的时候,记得修改httpd.conf。
在原有的位置文件中找到配置节
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>
修改成
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
#   Deny from all
    Allow from all
    Satisfy all
</Directory>
 
还有
 
<Directory "D:/Wamp5/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
    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>
修改成
 
<Directory "D:/Wamp5/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
    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
    Order Deny,Allow
#   Deny from all
#   Allow from 127.0.0.1
    Allow from all
</Directory>
Allow from all是关键

转载地址:http://httnx.baihongyu.com/

你可能感兴趣的文章
洛谷P1462 通往奥格瑞玛的道路
查看>>
jinja2
查看>>
垂直搜索引擎的性能优化@机票行业
查看>>
微软职位内部推荐-Software Engineer II
查看>>
ruby file
查看>>
LoadRunner编程中return 0的秘密
查看>>
用几何画板画垂线的方法
查看>>
几何画板可以这样画虚线
查看>>
请问为什么要用三极管驱动mos,直接用mos有什么缺点呢?
查看>>
OOP 1.2 const关键字
查看>>
【转】windows 如何查看端口占用情况?
查看>>
在Nginx 配置防止单IP 攻击频次的控制 和 大流量攻击
查看>>
springmvc加载xml文件读取本地properties配置文件
查看>>
Zabbix(一) : 简介以及Server端安装
查看>>
MongoDB简介、特点、原理、使用场景、应用案例
查看>>
Freemarker 的 Eclipse 插件 安装
查看>>
Python实现个人定制天气预报
查看>>
【整理篇】托管代码/非托管代码及托管资源/非托管资源的扫盲帖
查看>>
Pycharm安装步骤
查看>>
kill prefix meta,milli,kilo input
查看>>