![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
github_39325328
抱歉,没能及时回复你(已于2021-07-09转行)
展开
-
window下nginx访问不到静态资源问题
先来看一下我的nginx配置如果把图中第一处圈选,换成别的工作空间下静态页面目录,游览器访问localhost:808 (808是我配置的nginx端口),即可正常访问到静态页面。这也说明nginx是没有问题,而且别的工作空间也是一直用的这套nginx配置。奇怪的是换了个工作空间就无法正常访问静态页面,而且页面会报错很明显这是nginx的错误,这个页面存在...原创 2017-08-29 18:01:30 · 10098 阅读 · 0 评论 -
Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
场景:上传过大文件时,页面无反应,通过浏览器F12查看到错误信息:Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)请求实体太大解决方案:打开nginx.conf配置文件,修改client_max_body_size对应的值,解决上传大小的限制如果没有client...原创 2018-03-26 11:15:51 · 1556 阅读 · 0 评论 -
Failed to load resource: the server responded with a status of 504 (Gateway Time-out)
场景:测试项目新增功能,如果添加数据过多,页面无响应后台程序却没有中断,通过浏览器F12查看到错误信息:Failed to load resource: the server responded with a status of 504 (Gateway Time-out)网关超时查看nginx错误日志,也发现相关报错信息:upstream timed out (10060: A connecti...原创 2018-04-04 17:56:08 · 33584 阅读 · 0 评论