新版本的浏览器,对包含http文件链接的站点访问,不显示绿色的。使用谷歌浏览器访问本博客,会在地址栏右端显示“不运行不安全的脚本”。通过浏览器自带的F12调试工具,知道是外部的一个css和两个js脚本文件引用地址(cdn.staticfile.org)是http,并不是https开头的。 
操作: 
1.转到typecho文件目录,执行 grep -rnw './' -e 'cdn.staticfile.org' 查看到http网址引用,在 usr/themes/default/header.php 中 
 
 
 
2.sed -i 's/http:\/\/cdn.staticfile.org/https:\/\/cdn.staticfile.org/g' usr/themes/default/header.php 用https替换http 
 
 
 
3.再次在浏览器测试,谷歌浏览器显示网页是https的,正常 
 
参考: 
- https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux
- https://stackoverflow.com/questions/16849364/find-and-replace-text-in-sql-files
	




 
                  