Welcome! Log In Create A New Profile

Advanced

Re: empty variable in access log

Maxim Dounin
November 30, 2020 08:30AM
Hello!

On Sun, Nov 29, 2020 at 05:35:19AM -0800, Frank Liu wrote:

> 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?

The above snippet is expected to always result in "", as the above
variable has the value "". If it results in "-" being logged for
you, this is certainly not something expected, please share full
configuration which demonstrates the problem.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

empty variable in access log

Frank Liu November 29, 2020 08:36AM

Re: empty variable in access log

Maxim Dounin November 30, 2020 08:30AM

Re: empty variable in access log

Frank Liu November 30, 2020 05:06PM

Re: empty variable in access log

Maxim Dounin November 30, 2020 05:46PM

Re: empty variable in access log

Frank Liu November 30, 2020 06:28PM

Re: empty variable in access log

Maxim Dounin November 30, 2020 07:28PM

Re: empty variable in access log

Frank Liu November 30, 2020 07:38PM

Re: empty variable in access log

Frank Liu November 30, 2020 07:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
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