<div dir="ltr">I may have mixed this with special upstream variables, eg: $upstream_http_something. When upstream response header doesn't existing, the variable was logged - in the nginx access logs.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at 5:28 AM Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
On Sun, Nov 29, 2020 at 05:35:19AM -0800, Frank Liu wrote:<br>
<br>
> If I create a variable, default to blank:<br>
> <br>
>    map upstream_env $upstream_env {<br>
>        default "";<br>
>    }<br>
> <br>
> and log it in access log (log_format has $upstream_env). I see a "-" in the<br>
> log file, which is as expected, but for a 2-way SSL virtual host, I don't<br>
> see the "-", just blank. Is that a bug?<br>
<br>
The above snippet is expected to always result in "", as the above <br>
variable has the value "".  If it results in "-" being logged for <br>
you, this is certainly not something expected, please share full <br>
configuration which demonstrates the problem.<br>
<br>
-- <br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>