在按照yangmaofu的教程(https://bbs.histb.com/d/730-tian-jia-yi-ge-wang-zhan-bing-qie-yi-yu-ming-duan-kou-hao-de-xing-shi-fang-wen)修改blog端口后用ddnsto映射出去后,外网访问时主页列表一直显示加载,用F12查看时,有一个api报警,大致内容是Mixed Content:the page at‘https://' was loaded over HTTPS,but requested an insecure resource 'http://'。
网上搜了下,解决办法是:
在joe主题的index页面(路径:/var/www/html/blog/usr/themes/Joe-master/index.php)中的head标签中加入如下内容:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />