【发布时间】:2011-01-24 01:52:16
【问题描述】:
我正在使用通配符 dns 系统,该系统通过单个 Web 应用程序路由所有子域,并根据 URL 的第一部分(X.domain.com,其中 X 是用户名)设置用户 ID。
我现在想编辑我的 htaccess 文件以使用 htpasswd 为特定域启用条件 httpauth。例如如果 url = password.domain.com 则启用 httpauth。
我确信这是可能的,但我对 htaccess 的了解有限。
【问题讨论】: