Welcome! Log In Create A New Profile

Advanced

Re: Nginx and conditional logformat

Francis Daly
August 01, 2019 12:58PM
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@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx and conditional logformat

cello86@gmail.com July 25, 2019 05:08AM

Re: Nginx and conditional logformat

Maxim Dounin July 25, 2019 09:20AM

Re: Nginx and conditional logformat

cello86@gmail.com July 26, 2019 09:50AM

Re: Nginx and conditional logformat

Maxim Dounin July 29, 2019 09:04AM

Re: Nginx and conditional logformat

cello86@gmail.com August 01, 2019 07:18AM

Re: Nginx and conditional logformat

Francis Daly August 01, 2019 12:58PM

Re: Nginx and conditional logformat

cello86@gmail.com August 02, 2019 04:34AM

Re: Nginx and conditional logformat

Francis Daly August 02, 2019 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 206
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready