ucloud 轻量云(wordpress)配置ssl
1、上传ssl证书到/usr/local/software/apache/conf,这里的文件名和内容与ucloud控制台下载下来的文件名和内容保持一致
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服务有报错
在httpd.conf中找到下面这行,去掉注释,再重启httpd服务
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
5、添加解析
6、修改WordPress地址(URL)和站点地址(URL)
7、访问测试,ssl配置成功
注:httpd-ssl.conf中, 不能修改为<VirtualHost 域名:443>,不然会报错