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
注意配置的位置
————————————————
版权声明:本文为CSDN博主「兮家小二」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_41463655/article/details/108139021