一、
部分参考:腾讯云帮助文档在 apache 配置 ssl,实际用的阿里云服务器,里面也有帮助文档
二、
由于操作系统的版本不同,目录结构也不同,请根据实际操作系统版本进行查找。 若以上配置文件中均未找到 LoadModule
ssl_module modules/mod_ssl.so 和 Include conf.modules.d/*.conf
配置语句,请确认是否已经安装 mod_ssl.so 模块。若未安装 mod_ssl.so 模块,您可通过执行yum install
mod_ssl 命令进行安装。
安装mod_ssl过程中出问题:
[root@iZ2vc7vxbqxc177ze1zrmaZ bin]# yum install mod_ssl
Repository epel is listed more than once in the configuration
Last metadata expiration check: 2:25:07 ago on Fri 05 Nov 2021 08:02:40 AM CST.
Error:
Problem: package mod_ssl-1:2.4.37-39.module_el8.4.0+950+0577e6ac.1.x86_64 requires httpd = 2.4.37-39.module_el8.4.0+950+0577e6ac.1, but none of the providers can be installed
- cannot install the best candidate for the job
- package httpd-2.4.37-39.module_el8.4.0+950+0577e6ac.1.x86_64 is filtered out by exclude filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
在centos社区看到了,相关的提示:
打开yun.conf,把排除的httpd暂时删除就行,
重新安装,配置
成功