【问题标题】:Apache restart failed after adding OpenID Connect module添加 OpenID Connect 模块后 Apache 重启失败
【发布时间】:2015-07-22 14:22:47
【问题描述】:

我使用运行 Apache v.2.4.10 的 Debian 8.0,并尝试添加名为 libapach2-mod-auth-openidc 版本 1.6.0 的 OpenID Connect 模块。 安装模块后,我使用以下命令启用它:sudo a2enmod auth_openidc。这工作正常,现在我想用sudo service apache2 restart 重新启动 Apache 服务器,这会导致我出错

“apache2 的作业失败。有关详细信息,请参阅 'systemctl status apache2.service' 和 'journalctl -xn'。”

结果 systemctl status apache2.service 启动服务器时显示错误,但没有错误的详细信息(code=exited, status=1/FAILURE)

结果 journalctl -xn 告诉,没有期刊。

因此,如果我禁用 auth_openidc 模块,Apache 服务器会再次启动而不会出现问题。

配置详情:

  • Apache 以其默认设置运行。我没有改变任何东西!
  • auth_openidc 模块此时也没有被我更改!

有人能解释一下为什么启用了auth_openidc 模块的 Apache 不会再启动了吗?

【问题讨论】:

    标签: apache debian openid-connect mod-auth-openidc


    【解决方案1】:

    安装libapache2-mod-auth-openidc后,您需要配置一些设置才能成功使用该模块。其中两个强制设置是OIDCRedirectURIOIDCCryptoPassphrase。很可能您还必须为您的 OpenID Connect 提供程序配置客户端凭据。您可以查看示例配置:https://github.com/pingidentity/mod_auth_openidc#openid-connect-sso-with-google-sign-in

    有关缺少配置指令的错误/警告应显示在:/var/log/apache2/error.log

    虽然我们正在这样做,但我还建议您使用来自https://github.com/pingidentity/mod_auth_openidc/releases 的最新版本 1.8.1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-20
      • 1970-01-01
      • 2012-08-06
      • 2020-08-16
      • 2023-03-04
      • 2014-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多