带 DDEV 的 LDAP 的 Apache 配置

Apache configuration for LDAP with DDEV

对于 PHP 项目,我需要通过 LDAP 进行授权。 我已经通过在 mods-enabled:

中创建 link 来启用模块
sudo ln -s /etc/apache2/mods-available/authnz_ldap.load /etc/apache2/mods-enabled/authnz_ldap.load

重新启动 DDEV 时出现此错误:

Failed to restart BuildCenter: web container failed: log=phpstatus FAILED, err=container /ddev-BuildCenter-web unhealthy: phpstatus FAILED

用浏览器调用网站显示此错误:

502: Unresponsive/broken ddev back-end site.

有关于如何在 DDEV 中配置 LDAP 的提示吗?

找到问题了。该项目是 运行 apache 2.2.22 并且使用 ddev apache 2.4.25。从 .htaccess 文件中删除 'AuthzLDAPAuthoritative' 后,它就可以工作了。