mod_ssl与mod24_ssl AWS的区别

6

我正在努力让我的网站运行 TLS,阅读了 AWS 文档并尝试执行以下命令:

sudo yum install -y mod24_ssl

但是在某些依赖项上遇到了冲突。

后来我在一个博客中看到有人提到 sudo yum install mod_ssl 并且无障碍地运行了它。请问这样安装是否安全?mod_ssl 和 mod24_ssl 有什么区别吗?

谢谢!


1
mod_ssl适用于Apache 2.2.x,而mod24_ssl适用于Apache 2.4.x。 - stdunbar
2个回答

8

如果您的AWS实例使用Amazon Linux 2 AMI,您将使用mod_ssl安装Apache 2.4。

请注意,mod_ssl版本为“2.4.6”,AWS存储库为“amzn2-core”。

Available Packages
Name        : mod_ssl
Arch        : x86_64
Epoch       : 1
Version     : 2.4.6
Release     : 67.amzn2.6.1
Size        : 110 k
Repo        : amzn2-core/2017.12/x86_64
Summary     : SSL/TLS module for the Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
            : server via the Secure Sockets Layer (SSL) and Transport Layer
            : Security (TLS) protocols.

谢谢您。我看到的所有内容都说mod24_ssl,但是Amazon Linux 2没有这个,而且确实,mod_ssl从@amzn2-core安装为2.4.46-1.amzn2。 - Daniel Nalbach

4

正如@stdunbar所说,mod_ssl适用于Apache 2.2,而mod24_ssl适用于Apache 2.4。

我们可以看到包描述很相似,除了版本号:

[ec2-user]$ yum info mod_ssl
Available Packages
Name        : mod_ssl
Arch        : x86_64
Epoch       : 1
Version     : 2.2.32
Release     : 1.9.amzn1
Size        : 107 k
Repo        : amzn-updates/latest
Summary     : SSL/TLS module for the Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
            : server via the Secure Sockets Layer (SSL) and Transport Layer
            : Security (TLS) protocols.

[ec2-user]$ yum info mod24_ssl
Installed Packages
Name        : mod24_ssl
Arch        : x86_64
Epoch       : 1
Version     : 2.4.27
Release     : 3.71.amzn1
Size        : 224 k
Repo        : installed
From repo   : amzn-updates
Summary     : SSL/TLS module for the Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
            : server via the Secure Sockets Layer (SSL) and Transport Layer
            : Security (TLS) protocols.

我们可以使用yum deplist查看每个软件包依赖的内容:
[ec2-user]$ yum deplist mod_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
26 packages excluded due to repository priority protections
package: mod_ssl.x86_64 1:2.2.32-1.9.amzn1
  ... snip ...
  dependency: httpd = 2.2.32-1.9.amzn1
   provider: httpd.x86_64 2.2.32-1.9.amzn1
  ... snip ...

[ec2-user]$ yum deplist mod24_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
26 packages excluded due to repository priority protections
package: mod24_ssl.x86_64 1:2.4.27-3.71.amzn1
  ... snip ...
  dependency: httpd24 = 2.4.27-3.71.amzn1
   provider: httpd24.x86_64 2.4.27-3.71.amzn1
  ... snip ...

httpdhttpd24 冲突--你不能同时安装这两个。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接