【问题标题】:Apache plugin not working for Let's EncryptApache 插件不适用于 Let's Encrypt
【发布时间】:2016-12-24 14:03:35
【问题描述】:

我正在尝试使用 Let's Encrypt 保护我的 CentOS 7 VPS。我已遵循 https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7 中的指南。我已经设置了虚拟主机,安装了服务器依赖项和 Let's Encrypt 客户端。但是当我尝试设置 SSL 证书时:

    ./letsencrypt-auto --apache -d example.com -d mail.example.com

我得到错误:

    The apache plugin is not working; there may be problems with your existing configuration.
    The error was: NoInstallationError()

用于 Let's Encrypt 的 Apache 插件无法正常工作,但我该如何使其工作?

【问题讨论】:

    标签: apache centos7 lets-encrypt


    【解决方案1】:

    在 CentOS 7 和 Apache 2.4 上出现同样的错误。通过我的配置检查,有几个 IfModule 行没有用 /IfModule 关闭。 Apache 对它们没问题,但显然 certbot 解析器不是。希望这对其他人有帮助。

    【讨论】:

      【解决方案2】:

      显然它们是letsencrypt-auto脚本中的一个错误,你可以使用这个命令来完成这项工作。

      sudo certbot --authenticator standalone --installer apache -d <yourdomain> --pre-hook "systemctl stop apache2" --post-hook "systemctl start apache2"
      

      【讨论】:

        【解决方案3】:

        这个答案不起作用。在我的情况下,我检查了 apache 配置文件,并在它的末尾找到了以下行 &lt;IfModule mod_ssl.c&gt; 这没有意义。删除它后,续订继续进行,没有问题

        【讨论】:

          猜你喜欢
          • 2021-04-30
          • 2020-12-31
          • 2022-06-21
          • 2017-06-30
          • 1970-01-01
          • 2020-04-25
          • 2022-01-06
          • 2018-04-23
          • 1970-01-01
          相关资源
          最近更新 更多