$request_length outside of log module

Jonathan Matthews contact at jpluscplusm.com
Mon Jan 28 14:46:10 UTC 2013

On 28 January 2013 14:38, Richard Kearsley <rkearsley at blueyonder.co.uk> wrote:
> yeah, it's different (correct) definition here:
> http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format
> should probably update wiki to reflect it

Ah yes, you're right. Haven't see a doc/wiki mismatch like that before!

> I think $http_content_length will give the length of the response also (not
> the request)

I don't think it will.
http://wiki.nginx.org/HttpCoreModule#.24http_HEADER says it'll be the
request header.

I hadn't noticed $sent_http_* before - handy!

Jonathan Matthews // Oxford, London, UK

More information about the nginx mailing list