Nginx 502错误: Failed to load resource: the server responded with a status of 502 (Bad Gateway)

àì夳堔傛蜴生んèń 2022-11-29 12:44 409阅读 0赞

发现问题

错误信息: Failed to load resource: the server responded with a status of 502 (Bad Gateway)在这里插入图片描述
在这里插入图片描述
主要原因是 ,是cookie携带的 header太多了,请求头数据过大

解决问题

nginx 添加配置

  1. # 502 bad gateway 错误解决配置 start
  2. proxy_buffer_size 64k;
  3. proxy_buffers 32 32k;
  4. proxy_busy_buffers_size 128k;
  5. # 502 bad gateway 错误解决配置 end

注意配置的位置
在这里插入图片描述

关注公众号【兮家】,不定时分享干货内容哦
在这里插入图片描述

个人开源项目(通用后台管理系统)–> https://gitee.com/wslxm/spring-boot-plus2 , 喜欢的可以看看
本文到此结束,如果觉得有用,动动小手点赞或关注一下呗,将不定时持续更新更多的内容…,感谢大家的观看!

发表评论

表情:
评论列表 (有 0 条评论,409人围观)

还没有评论,来说两句吧...

相关阅读