Nginx 502 559错误代码是什么意思?

时间:2020-04-17 19:00:05

标签: nginx bad-gateway

我的nginx错误日志中出现“ 502 559”错误。我知道502的意思是“错误的网关”。 559是什么意思?

1 个答案:

答案 0 :(得分:1)

Richard Smith在评论中提到,nginx日志中的559代表:

Nginx发送到浏览器的HTML响应中的字节数

来源: http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format

,或者如docs中所指定:

$body_bytes_sent
发送给客户端的字节数,不计算响应头;此变量与“%B” Apache模块的mod_log_config参数

兼容