apache - mod_ldap Apache错误处理服务器错误500

标签 apache error-handling mod-ldap

我有apache2-2.2.3-16.29.2和mod_ldap的工作配置。
用户可以登录,所有请求均得到正确处理。

如果用户尝试登录并且未在LDAP中配置该用户,则会引发服务器错误500。

在apache错误日志中,有两个条目:

[13257] auth_ldap authenticate: user myuser authentication failed; URI /page [User not found][No such object]
[crit] [client x.x.x.x] configuration error:  couldn't check user.  No user file?: /page

因此,一切正常。我的问题是:是否可以将401错误配置为引发而不是500?

感谢纽伦堡,
马可

最佳答案

只需添加

AuthUserFile /dev/null

您可能会在URL https://gitlab.com/dpenezic/small-admin-tips/blob/master/httpd-ldap.md上找到更多可能的问题

关于apache - mod_ldap Apache错误处理服务器错误500,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17875118/

相关文章:

PHP无法在tmp中写入文件

perror() 的 C++ 替代方案

macos - Prolog错误的编译?

apache - 使用 mod_authnz_ldap 和 apr/apr-util 构建 apache2 2.4.3 时出错

从 Stretch 升级到 Buster 后,apache2.4 mod ldap 无法连接到 2012R2 LDAP

apache - 具有 SNI(服务器名称指示)的 RESTful、面向 Web 的服务

apache - 公用文件夹中的 Rails 4 图像未在 Apache 开发中加载

php - Apache 重写语法中 PHP 的 dirname(__FILE__) 的等价物?

python - 错误处理提示用户仅输入大于1的整数