博客页面的样子想截个图放这里的,但是不知道咋在帖子里插入图片,所以我干脆把我的博客地址放这
https://www.yangcloud.online/
F12控制台里报静态资源http不是https的错误
然而我在博客后台已经设置的博客的地址是https的,
另外,下面是我的nginx配置
server {
listen 80;
server_name www.yangcloud.online;
rewrite ^(.*)$ https://www.yangcloud.online$1 permanent;
}
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate 3545901_yangcloud.online.pem;
ssl_certificate_key 3545901_yangcloud.online.key;
location / {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8090;
}