不能显示图片

更换了服务器后,没有仔细检查一下。今天打开文章发现不能打开图片。

2020/12/10 23:33:56 [crit] 427811#0: *4926 stat() “/usr/share/nginx/blog/wp-content/uploads/2020/12/clipboard-1024×191.png” failed (13: Permission denied), client: 223.97.1.171, server: blog.sunliguo.com, request: “GET /wp-content/uploads/2020/12/clipboard-1024×191.png HTTP/1.1”, host: “blog.sunliguo.com”, referrer: “http://blog.sunliguo.com/archives/dai-li.html”

是权限的问题,检查了半天才找到原因。是目录没有x权限。

但同时又发现了个问题:上传新文件的owner是apache?

请选择你看完该文章的感受:

0不错 0超赞 0无聊 0扯淡 0不解 0路过

随机文章:

发表评论