wireshark抓包
证书过期问题导致的网关层返回502错误
背景:
新对接的新服务,在nginx上配置为反向代理upstream进行访问
业务方出现的问题:
访问时稳定复现502错误,但是使用curl则正常。nginx配置如下:
出错的nginx配置
location /test
{
proxy_pass https://middleground_workonly_backend/xxx/xxx;
proxy_http_version 1.1;
proxy_set_header Host "xxx-sandbox-workonly.xxx.xxx";
proxy_set_header Connection "keep-alive";
proxy_connect_timeout 5;
proxy_send_timeout 10;
proxy_read_timeout 10;
}
2025年3月28日...大约 2 分钟