|
<div class="f14 mb10" id="read_tpc">
新版本的浏览器,对包含http文件链接的站点访问,不显示绿色的。使用谷歌浏览器访问本<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=博客',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_6">博客</span>,会在地址栏右端显示“不运行不<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=安全',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_3">安全</span>的脚本”。通过浏览器<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=自',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_1">自</span>带的F12调试<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=工具',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_5">工具</span>,知道是外部的一个css和两个js脚本文件引用地址(cdn.staticfile.org)是http,并不是<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=https',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_4">https</span>开头的。<span style="display:none"> q~*9A-MH </span> <br /> <span style="display:none"> W_w^"' </span> <br /><span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=操作',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_2">操作</span>:<span style="display:none"> 2g>4fZ </span> <br /> <span style="display:none"> dso6ZRx </span> <br />1.转到typecho文件目录,执行 grep -rnw './' -e 'cdn.staticfile.org' 查看到http网址引用,在 usr/themes/default/header.php 中<span style="display:none"> qmNgEz% </span> <br /><span id="att_144759" class="f12"><span id="td_att144759" onmouSEOver="read.open('menu_att144759','td_att144759');" style="display:inline-block;"><img src="http://bbs.aliyun.com/attachment/Fid_207/207_1477160476054779_b29390f76f358a7.png?8" border="0" style="max-width:995px;" onload="if(this.offsetWidth>'995')this.width='995';"></span><div id="menu_att144759" class="pw_menu" style="display:none;"><div style="border:1px solid #ffffff;background:#f3f9fb;padding:5px 10px;"><p><span class="mr10">图片:typecho-js-https-1.png</span></p></div></div></span><span style="display:none"> oD_n+95B
</span> <br /> <span style="display:none"> )tB:g.2k </span> <br />2.sed -i 's/http:\/\/cdn.staticfile.org/https:\/\/cdn.staticfile.org/g' usr/themes/default/header.php 用https替换http<span style="display:none"> +n]z'pijb </span> <br /><span id="att_144760" class="f12"><span id="td_att144760" onmouseover="read.open('menu_att144760','td_att144760');" style="display:inline-block;"><img src="http://bbs.aliyun.com/attachment/Fid_207/207_1477160476054779_88a36711903b453.png?20" border="0" style="max-width:995px;" onload="if(this.offsetWidth>'995')this.width='995';"></span><div id="menu_att144760" class="pw_menu" style="display:none;"><div style="border:1px solid #ffffff;background:#f3f9fb;padding:5px 10px;"><p><span class="mr10">图片:typecho-js-https-2.png</span></p></div></div></span><span style="display:none"> Ce:2Tw </span> <br /> <span style="display:none"> W{pyU\ </span> <br />3.再次在浏览器测试,谷歌浏览器显示网页是https的,正常<span style="display:none"> Q8]lz} </span> <br /> <span style="display:none"> T(Q(7 </span> <br />参考:<span style="display:none"> -0Ws3 </span> <br /><ul style="margin:0 0 0 25px"><li>https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux</li><li>https://stackoverflow.com/questions/16849364/find-and-replace-text-in-sql-files</li></ul><span style="display:none"> |?zFm
mh </span> <br /> <span style="display:none"> (XF"ckma </span> <br /><div id="alert_tpc" style="color:gray;margin-top:30px">[ 此帖被dongshan8在2018-09-06 11:24重新编辑 ]</div>
</div>
</div>
<!--content_read-->
</td>
</tr>
<tr>
|
|