How to log all headers in nginx?

Zhang Chao zchao1995 at
Wed Jun 7 06:25:54 UTC 2017


You can traverse the list r->headers_in.headers.

On 7 June 2017 at 14:22:38, prathour9 (nginx-forum at wrote:

I want to log all the headers in client browser send to nginx.However known
header i can log.But I want to log the all unknown headers.
How can i log unknown header in nginx.

Posted at Nginx Forum:,251159,274722#msg-274722

nginx mailing list
nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list