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

2022-01-14 Thread podzol33
Thans you very well for your response. In fact, it works with log_format formatjson escape=json '{ '"tomcat_container_id": "$upstream_http_container_id" }'; proxy_hide_header Container-Id; define in my vhost configuration. I have the log AND the header deleted in the browser client. Posted at Ngi

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

2022-01-12 Thread Maxim Dounin
Hello! On Wed, Jan 12, 2022 at 12:44:34PM -0500, podzol33 wrote: > 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. > > log_fo

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

2022-01-12 Thread Reinis Rozitis
> 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 modul

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

2022-01-12 Thread podzol33
Hello, 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. log_format formatjson escape=json '{ '"tomcat_container_id": "$TOMCAT_CO