[{"data":1,"prerenderedAt":184},["ShallowReactive",2],{"blog-\u002Fblog\u002Faliyun_apache_linux_free_https_ssl_lock_icon":3},{"id":4,"title":5,"body":6,"category":171,"cover":172,"csdn":172,"date":173,"description":5,"draft":174,"extension":175,"meta":176,"navigation":177,"path":178,"seo":179,"stem":180,"tags":181,"updated":172,"__hash__":183},"blog\u002Fblog\u002Faliyun_apache_linux_free_https_ssl_lock_icon.md","阿里云 Apache Linux 免费 https SSL 小锁头",{"type":7,"value":8,"toc":168},"minimark",[9,21,30,38,42,47,51,62,66,72,76,82,85,91,95,101,108,114,118,123,126,132,136,142,146,151,155,158,161,165],[10,11,13,14],"h1",{"id":12},"_0-阿里云-apache-配置教程","0. ",[15,16,20],"a",{"href":17,"rel":18},"https:\u002F\u002Fhelp.aliyun.com\u002Fdocument_detail\u002F98727.html?spm=5176.2020520163.0.0.5f3156a7PRv5pi",[19],"nofollow","阿里云 Apache 配置教程",[10,22,24,25],{"id":23},"_1-阿里云免费白嫖ssl","1. ",[15,26,29],{"href":27,"rel":28},"https:\u002F\u002Fcommon-buy.aliyun.com\u002F?spm=5176.2020520163.c1583915649459.d1583915649459_0.698856a7hg0KJ1.698856a7hg0KJ1&commodityCode=cas#\u002Fbuy",[19],"阿里云免费（白嫖）SSL",[31,32,33],"p",{},[34,35],"img",{"alt":36,"src":37},"在这里插入图片描述","https:\u002F\u002Fpub-5ec96507162a4f0a8e713a916117c9f4.r2.dev\u002Fblog\u002F75fa5fb4abc48dcbbf1e1363a5f5759e.png",[10,39,41],{"id":40},"_2-下载-ssl-证书","2. 下载 SSL 证书",[31,43,44],{},[34,45],{"alt":36,"src":46},"https:\u002F\u002Fpub-5ec96507162a4f0a8e713a916117c9f4.r2.dev\u002Fblog\u002F27dffb9f44fb5804d192c4678839f1ad.png",[10,48,50],{"id":49},"_3-登录服务器安装-ssl-模块","3. 登录服务器，安装 SSL 模块",[52,53,58],"pre",{"className":54,"code":56,"language":57},[55],"language-text","yum install mod_ssl -y\n","text",[59,60,56],"code",{"__ignoreMap":61},"",[10,63,65],{"id":64},"_4-在服务器建-cert-目录将刚才下载的证书放到这里__推荐使用-filezilla","4. 在服务器建 cert 目录，将刚才下载的证书放到这里__推荐使用 FileZilla",[52,67,70],{"className":68,"code":69,"language":57},[55],"mkdir \u002Fetc\u002Fhttpd\u002Fcert\u002F\n",[59,71,69],{"__ignoreMap":61},[10,73,75],{"id":74},"_5-修改-apache-配置文件-约在第55行","5. 修改 Apache 配置文件 约在第55行",[52,77,80],{"className":78,"code":79,"language":57},[55],"vim \u002Fetc\u002Fhttpd\u002Fconf\u002Fhttpd.conf\n",[59,81,79],{"__ignoreMap":61},[31,83,84],{},"改后",[52,86,89],{"className":87,"code":88,"language":57},[55],"# LoadModule foo_module modules\u002Fmod_foo.so\nInclude conf.modules.d\u002F*.conf\n",[59,90,88],{"__ignoreMap":61},[10,92,94],{"id":93},"_6-修改-ssl-配置文件","6. 修改 SSL 配置文件",[52,96,99],{"className":97,"code":98,"language":57},[55],"vim \u002Fetc\u002Fhttpd\u002Fconf.d\u002Fssl.conf\n",[59,100,98],{"__ignoreMap":61},[31,102,103,104],{},"在 ",[105,106,107],"virtual-host",{"_default_:443":61}," 标签里改动",[52,109,112],{"className":110,"code":111,"language":57},[55],"SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM\n\nDocumentRoot \"\u002Fvar\u002Fwww\u002Fhtml\"\n\nServerName www.xxxxxxxxxx.com:443\n\nSSLCertificateFile   \u002Fetc\u002Fhttpd\u002Fcert\u002Fxxxxxxxxxx.com_public.crt\n\nSSLCertificateKeyFile   \u002Fetc\u002Fhttpd\u002Fcert\u002Fxxxxxxxxxx.com.key\n\nSSLCertificateChainFile   \u002Fetc\u002Fhttpd\u002Fcert\u002Fxxxxxxxxxx.com_chain.crt\n",[59,113,111],{"__ignoreMap":61},[10,115,117],{"id":116},"_7-配置-http-跳-https","7. 配置 http 跳 https",[52,119,121],{"className":120,"code":79,"language":57},[55],[59,122,79],{"__ignoreMap":61},[31,124,125],{},"添加以下标签",[52,127,130],{"className":128,"code":129,"language":57},[55],"\u003CVirtualHost *:80>\n    RewriteEngine on\n    RewriteCond %{SERVER_PORT} !^443$\n    RewriteRule ^(.*)$ https:\u002F\u002F%{SERVER_NAME}$1 [L,R]\n\u003C\u002FVirtualHost>\n",[59,131,129],{"__ignoreMap":61},[10,133,135],{"id":134},"_8-重启-apache","8. 重启 Apache",[52,137,140],{"className":138,"code":139,"language":57},[55],"systemctl restart httpd\n",[59,141,139],{"__ignoreMap":61},[10,143,145],{"id":144},"_9-大功告成-访问你的-xxxxxxxxxxcom-看一看小锁头是否出现了","9. 大功告成 访问你的 xxxxxxxxxx.com 看一看小锁头是否出现了",[31,147,148],{},[34,149],{"alt":36,"src":150},"https:\u002F\u002Fpub-5ec96507162a4f0a8e713a916117c9f4.r2.dev\u002Fblog\u002F4393af6cdb581779767c6331f56536a9.png",[10,152,154],{"id":153},"_10-好累啊","10. 好累啊~~~~~~~~~~~~~~~~~~~~~~~~~",[31,156,157],{},"有帮助别忘了点个赞，鼓励一下",[31,159,160],{},"有问题请评论",[10,162,164],{"id":163},"_2026-年补充","2026 年补充",[31,166,167],{},"有更简单的办法，不用手动申请，也不用手动修改文件",{"title":61,"searchDepth":169,"depth":169,"links":170},2,[],"前端",null,"2020-03-15",false,"md",{},true,"\u002Fblog\u002Faliyun_apache_linux_free_https_ssl_lock_icon",{"title":5,"description":5},"blog\u002Faliyun_apache_linux_free_https_ssl_lock_icon",[182],"https","rMtxOvFuoG1-HWhrZ8uGErKpm2Vnb3JjIhG7I7YoBpI",1780076048686]