ucloud轻量云(wordpress)配置ssl

ucloud 轻量云(wordpress)配置ssl

1、上传ssl证书到/usr/local/software/apache/conf,这里的文件名和内容与ucloud控制台下载下来的文件名和内容保持一致
ucloud轻量云(wordpress)配置ssl_第1张图片

2、修改httpd.conf文件

vim /usr/local/software/apache/conf/httpd.conf
找到下面两行,去掉注释
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf 

3、修改httpd-ssl.conf文件

vim /usr/local/software/apache/confextra/httpd-ssl.conf 
DocumentRoot "/usr/local/software/wordpress"
SSLCertificateFile "/usr/local/software/apache/conf/public.crt"
SSLCertificateKeyFile "/usr/local/software/apache/conf/private.key"
SSLCertificateChainFile "/usr/local/software/apache/conf/ca.crt"

4、重启httpd服务有报错
ucloud轻量云(wordpress)配置ssl_第2张图片
在httpd.conf中找到下面这行,去掉注释,再重启httpd服务

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

5、添加解析
ucloud轻量云(wordpress)配置ssl_第3张图片
6、修改WordPress地址(URL)和站点地址(URL)
ucloud轻量云(wordpress)配置ssl_第4张图片
7、访问测试,ssl配置成功
ucloud轻量云(wordpress)配置ssl_第5张图片

注:httpd-ssl.conf中, 不能修改为,不然会报错
ucloud轻量云(wordpress)配置ssl_第6张图片

你可能感兴趣的:(ssl,网络协议,网络)