【问题标题】:making subfolder unrestricted while using .htpasswd in apache在 apache 中使用 .htpasswd 时使子文件夹不受限制
【发布时间】:2010-10-05 13:18:34
【问题描述】:

我有多个应用程序在我的 linux 服务器上运行。

主域使用 .htpasswd 文件是安全的。

但我需要在子域中删除安全性。

我怎样才能做到这一点。

问候

尼扎姆

【问题讨论】:

    标签: apache .htaccess


    【解决方案1】:

    将以下内容放入子文件夹内的 .htaccess 文件中:

    Order deny,allow
    Allow from All
    Satisfy any
    

    Order deny,allow 导致 Allow 覆盖任何 Deny 指令。
    Allow from All 授予对所有主机的访问权限。
    Satisfy any 导致绕过密码身份验证,因为基于主机的规则 ( Allow from All) 已通过。

    Apache 手册链接:

    【讨论】:

    • 非常感谢您提供如此详细的解释
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多