RE: Variable “set” in map with an Header Value was lost when we delete the header.

Reinis Rozitis r at roze.lv
Wed Jan 12 18:28:37 UTC 2022


> We have an responseHeader with technical information sent by the upstream server tomcat.
> We want to log this information in nginx and delete the header to avoid to be visible in the response Header to the client.
>
> more_clear_headers 'Container-Id';

This seems to be a third-party module..

Maybe more simple approach would be just to use the inbuilt proxy module directive proxy_hide_header ?

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_hide_header

rr



More information about the nginx mailing list