Welcome! Log In Create A New Profile

Advanced

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

Reinis Rozitis
January 12, 2022 01:30PM
> 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

_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Subject Author Posted

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

podzol33 January 12, 2022 12:44PM

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

Reinis Rozitis January 12, 2022 01:30PM

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

Maxim Dounin January 12, 2022 01:38PM

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

podzol33 January 14, 2022 10:10AM

proxy_hide header not working

arunr039 August 23, 2022 03:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready