Nginx and conditional logformat

Francis Daly francis at daoine.org
Thu Aug 1 16:57:53 UTC 2019


On Thu, Aug 01, 2019 at 01:16:45PM +0200, Marcello Lorenzi wrote:

Hi there,

just as a small interruption...

> It seems that the set variable is not
> working into the if statement.

"if" inside "location" is not great to use, unless you know what it does.

> We can’t use the “map” parameter because it works only to a http block and
> not into location block.

You probably can use "map" at http level to define the
access_log-if-variable. Try it, you might be pleasantly surprised.

Cheers,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list