如果auth_basic_user_file在nginx中失败,则为auth_request的后备



如何首先让nginx尝试使用基本文件身份验证来验证传入请求,而仅如果文件auth失败,则仅使用auth_request的后备?我正在尝试在Apache中复制AuthbasicProvider的行为,例如,可以指定" authbasicprovider文件ldap"。

弄清楚了。

satisfy any;
auth_basic "Restricted";
auth_basic_user_file /path/to/auth/file;
auth_request /auth-endpoint;

相关内容

最新更新