How to extract multiple values of a header for logging

Robert Paprocki rpaprocki at fearnothingproductions.net
Fri Nov 21 01:56:25 UTC 2014


This is possible using if you are able to use the Lua module:

http://wiki.nginx.org/HttpLuaModule#ngx.req.get_headers

"For multiple instances of request headers ... the value of
ngx.req.get_headers()["Foo"] will be a Lua (array) table..."

On 11/20/2014 05:19 PM, keeyong wrote:
> Thanks Maxim for the confirmation
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254961,255012#msg-255012
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 



More information about the nginx mailing list