存档

文章标签 ‘访问控制’

Apache在子目录取消访问控制

2010年4月24日 flex 2 条评论

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

分类: 运维 标签: , ,