empty variable in access log
Frank Liu
gfrankliu at gmail.com
Sun Nov 29 13:35:19 UTC 2020
Hi,
If I create a variable, default to blank:
map upstream_env $upstream_env {
default "";
}
and log it in access log (log_format has $upstream_env). I see a "-" in the
log file, which is as expected, but for a 2-way SSL virtual host, I don't
see the "-", just blank. Is that a bug? For now, if I change above map to :
map upstream_env $upstream_env {
default "-";
}
I can then see the - in the access log for 2-way SSL virtual host.
Thanks!
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20201129/befca000/attachment.htm>
More information about the nginx
mailing list