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

1,上传apache文件 并改名。

[[email protected]_22_193_centos Apache]# mv 1_root_bundle.crt root.crt
[[email protected]_22_193_centos Apache]# mv 2_minishop.club.crt server.key

[[email protected]_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

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

3.编辑ssl.conf

#yum install -y mod_ssl

#vim /etc/httpd/ssl/

确保

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

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


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


注意不要敲错!

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

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


相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2021-11-13
  • 2022-01-01
  • 2021-11-28
  • 2022-01-12
  • 2019-09-02
猜你喜欢
  • 2022-01-20
  • 2022-12-23
  • 2021-11-30
  • 2022-02-07
  • 2021-12-05
  • 2021-09-25
相关资源
相似解决方案