标签: nginx ldap openldap
我们有一个运行在Nginx之上的nodejs应用程序。我们还将OpenLDAP用于身份验证服务。是否可以设置NGINX来监视(LDAP健康检查)OpenLDAP服务器?
例如:我可以在nginx.conf中使用以下内容:
location /ldap_status { proxy_pass ldap://127.0.0.1; }
然后使用CURL http://localhost/ldap_search进行测试。
以上可能吗?如果没有,有什么替代方法?