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

发现问题

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

解决问题

nginx 添加配置

    # 502 bad gateway 错误解决配置 start
    proxy_buffer_size 64k;
    proxy_buffers 32 32k;
    proxy_busy_buffers_size 128k;
    # 502 bad gateway 错误解决配置 end
    

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

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

猜你喜欢

转载自blog.csdn.net/qq_41463655/article/details/108139021