首页 > 运维 > Apache在子目录取消访问控制

Apache在子目录取消访问控制

2010年4月24日 flex 发表评论 阅读评论

Removing controls in subdirectories

The following example shows how to use the Satisfy directive to disable access controls in a subdirectory of a protected directory. This technique should be used with caution, because it will also disable any access controls imposed by mod_authz_host.

<Directory /path/to/protected/>
Require user david
</Directory>
<Directory /path/to/protected/unprotected>
# All access controls and authentication are disabled
# in this directory
Satisfy Any
Allow from all
</Directory>

截取自apache 2.2手册http://httpd.apache.org/docs/2.2/mod/core.html#require

分类: 运维 标签: , ,
  1. 2010年6月8日22:31 | #1

    Satisfy Any
    Allow from all
    都要加上,是吧?

  2. flex
    2010年6月8日23:03 | #2

    @auxten
    是的~~

  1. 本文目前尚无任何 trackbacks 和 pingbacks.