腾讯云服务器(centos 7 ) 安装 apache https 环境

在安装证书前,为了方便,先关闭防火墙

1,上传apache文件 并改名。

[root@VM_22_193_centos Apache]# mv 1_root_bundle.crt root.crt
[root@VM_22_193_centos Apache]# mv 2_minishop.club.crt server.key

[root@VM_22_193_centos Apache]# mv 2_minishop.club.crt server.crt


2.将证书文件移至ssl文件夹下

#mkdir /etc/httpd/ssl

#mv Apache/* /etc/httpd/ssl

#ls /etc/httpd/ssl


3.编辑ssl.conf

#yum install -y mod_ssl

#vim /etc/httpd/ssl/

确保






注意不要敲错!

最后输入https://域名.com  验证。

参考文章:http://blog.51cto.com/gaowenlong/1885988


猜你喜欢

转载自blog.csdn.net/weixin_37914752/article/details/80373681