返回给客户端的 apache 访问日志高字节大小
apache access log high byte size returned to client
我可以在我的访问日志中看到这个
66.102.6.215 - - [27/Oct/2016:05:05:27 +0000] "GET /wp-content/cache/minify/d9389.css HTTP/1.1" 200 80460 "https://example.com/" "Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG-SM-G935A Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36"
我可以看到客户端的文件大小响应大约为 80kb,这准确吗?
你的 LogFormat 可能是这个 :
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\""
号码80460对应%O
。根据文档:
%O
Bytes sent, including headers. May be zero in rare cases such as when a request is aborted before a response is sent.
这意味着请求的大小是80460字节,这大约是78.6 KB(千字节),大约是0.08 MB(兆字节)。
我可以在我的访问日志中看到这个
66.102.6.215 - - [27/Oct/2016:05:05:27 +0000] "GET /wp-content/cache/minify/d9389.css HTTP/1.1" 200 80460 "https://example.com/" "Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG-SM-G935A Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36"
我可以看到客户端的文件大小响应大约为 80kb,这准确吗?
你的 LogFormat 可能是这个 :
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\""
号码80460对应%O
。根据文档:
%O
Bytes sent, including headers. May be zero in rare cases such as when a request is aborted before a response is sent.
这意味着请求的大小是80460字节,这大约是78.6 KB(千字节),大约是0.08 MB(兆字节)。