简体   繁体   English

nginx日志http状态是404187

[英]nginx log http status what is 404 187

Hi I got nginx access log file like the follows: 嗨,我得到了nginx访问日志文件,如下所示:

192.168.1.1 - - [06/Nov/2012:22:13:46 +1100] "GET /?i=a HTTP/1.1" 404 187 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1"
192.168.1.2 - - [06/Nov/2012:22:13:50 +1100] "GET /?i=b HTTP/1.1" 200 0 "http://abc.com/545512565475443/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"

So that 404 in the first line should be not found and 200 in the second line means success. 因此,不应在第一行中找到404 ,而在第二行中找到200表示成功。 That's okay, but what is the 187 behind 404 in the first line and 0 behind 200 in the second line? 没关系,但是第一行中404后的187和第二行中200后的0是什么?

thanks, Green 谢谢,格林

according to this default log format is: 根据默认日志格式为:

log_format combined '$remote_addr - $remote_user [$time_local]  '
                    '"$request" $status $body_bytes_sent '
                    '"$http_referer" "$http_user_agent"';

so 187 or 0 after the response code is number of bytes sent to client 因此响应代码后的187或0是发送给客户端的字节数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM