How to extract multiple values of a header for logging

Maxim Dounin mdounin at
Thu Nov 20 14:59:38 UTC 2014


On Wed, Nov 19, 2014 at 03:09:16PM -0500, keeyong wrote:

> I have a custom header in http response and it can appear more than once.
> Let's say it is called x-extra. 
> In my nginx configuration, I want to extract all of its values and log them
> together but I found it is always extracting the very first one. Is it
> possible to do this somehow? 

I don't think it's currently possible.

Maxim Dounin

More information about the nginx mailing list