时间:2023-07-16 02:42:01 | 来源:网站运营
时间:2023-07-16 02:42:01 来源:网站运营
CentOS 8 Apache 启用 SSL:在 CentOS 8 安装成功后,如果希望启用 ssl,你需要执行下面的一些操作。# dnf install mod_ssl
apachectl -M | grep ssl
服务器可能会返回:firewall-cmd --zone=public --permanent --add-service=httpsfirewall-cmd --zone=public --permanent --add-port=80/tcpfirewall-cmd --reloadsystemctl restart firewalld
/etc/httpd/conf.d/ssl.conf
在上面的配置文件中,需要设置 key 和 crt 信息,请参考网络上的配置。关键词:启用