覆盖全局 htpasswd 密码保护 [英] Overriding global htpasswd password protection

查看:46
本文介绍了覆盖全局 htpasswd 密码保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行许多其他开发站点的开发服务器上测试 Drupal 站点.所有站点都由 htpasswd 全局密码保护.但是,我的测试站点不需要密码保护,因为我正在 .htaccess 中使用 Apache 指令AuthType Shibboleth"测试另一种身份验证方法,这似乎与 Apache 密码冲突.

I am testing a Drupal site on a development server that runs bunch of other development sites. All of the sites are password protected globally by htpasswd. However, I need to not have password protection on my testing site because I am testing another authentication method using Apache directive "AuthType Shibboleth" in my .htaccess, which seems in conflict with Apache password.

如何仅在全局 htpasswd 对其他站点有效的情况下为我的站点关闭 htpasswd 保护?

How do I turn off htpasswd protection for my site only with global htpasswd in effect for other sites?

推荐答案

位于您不想保护的站点的根目录中的 .htaccess 中的以下行始终适用于我:

The following line in an .htaccess in the root of the site you DON'T want protected always works for me:

satisfy any

这篇关于覆盖全局 htpasswd 密码保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆