从本地压缩hexoblog上传到服务器,配置nginx后,访问发现样式不对,头像也没出来
1 2
| tar -zcvf hexoblog.tar.gz hexoblog scp hexoblog.tar.gz root@114.215.111.84/usr/local/openresty/nginx/html/
|
nginx配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| server { charset utf-8; client_max_body_size 128M;
listen 80; server_name hexo.xiaohuasheng.cc; root /usr/local/openresty/nginx/html/hexoblog/public/; index index.html; access_log logs/hexo_xiaohuasheng_access.log; error_log logs/hexo_xiaohuasheng_error.log;
location / { }
error_page 404 /404.html; location = /40x.html { }
error_page 500 502 503 504 /50x.html; location = /50x.html { } }
|
查不到解决办法
最后执行了hexo clean
, 再重新生成public,浏览器也禁用缓存刷新页面,才可以了