Regex in proxy_hide_header

bmrf nginx-forum at
Wed May 2 09:34:04 UTC 2018

Hi list,

I was trying to unset/delete a header using proxy_hide_header. The problem
is that the header name is always unknown, but it has always the same
pattern, it starts with several whitespaces followed by random characters, 
something like \s+\w+ 

If regex is not supported at proxy_hide_header, as it seems it is,  is there
any other way to accomplish this?

Thanks a lot!

Posted at Nginx Forum:,279657,279657#msg-279657

More information about the nginx mailing list