加载 jpg 时获取 404 无法加载资源:服务器响应状态为 404 ()

fetch 404 while loading jpg Failed to load resource: the server responded with a status of 404 ()

我已经将基于 nodejs 的 React 应用程序部署到数字海洋,我还使用 cloudflare 进行 ssl 和 dns 托管。我的项目使用 google workbox 和 lru-cache。我在 digitalocean ubuntu droplet 中进行了 nginx 设置。 一切正常,除了 .jpg、.jpeg 产品图片没有加载浏览器并给我这个错误

iam showing in chrome like that

我会解决这个错误,但我不明白有趣的是什么

经过一些搜索后,我担心 ubuntu 中我的图像文件在哪里,并且它有权为互联网 public 用户查看 (chod x +R)。他们可以阅读我的文件吗?但我已经抑制了该目录中没有任何文件。当我用 fs.sysnc

上传我的 jpg 文件时,因为 ubuntu 没有给我写权限的过程

已编辑: 在我看到对寻找另一个目录的 nginx 设置感兴趣之后,我已经更正了它并且一切正常!