nginx - fetch 404 while loading jpg Failed to load resource: the server responded with a status of 404 ()
问题描述
I have deployed my nodejs based react application to digital ocean also i have used the cloudflare for ssl and dns hosting. My project has using google workbox and lru-cache. I have made nginx settings in the digitalocean ubuntu droplet. Everything oke except the .jpg,.jpeg product images doesnt loading browser and giving me this error
iam showing in chrome like that
i will solve this error but i couldnt understand interesting with what
解决方案
After some searching i concern about where is my image files in ubuntu and it has right permission to seen (chod x +R) for internet public users. Can they read my files. But i have suppresed with there is no any file in that directory. Couse ubuntu doesnt give me my process to write permisson when i uploading my jpg files with fs.sysnc
Edited: After i seen that is interested with nginx settings which has looking another directory, i have corrected that and everything worked out!
推荐阅读
- python - pandas - 高效计算组合算术
- python - scipy pdist 只得到两个最近的邻居
- apache-camel - 带路由策略的 Camel Quartz
- python - 结构 key= min 如何在排序方法中工作?
- java - 为什么 Firebase 实时数据库没有更新?
- powerbi - 如何设计这个特定的日历表报告
- python - 如何更改具有不同默认编码类型的多个 csv 文件的编码?
- github - 将现有的 lambda 函数从 AWS 复制到 Github
- android - Android studio 一种用法被过滤掉了
- django - 如何从不同的模型访问多对多字段数据?