Welcome! Log In Create A New Profile

Advanced

Nginx and conditional logformat

July 25, 2019 05:08AM
Hi All,
we tried to add some debug information into our access_log for a service with a client certificate authentication. Actually we print some information related to the clients but we would print into the logs the client certificate sent by the client during the handshake in case of error. We tried to put the generic logformat into the server block and another logformat into the if condition, but the first wins always versus the second.

Is it possible to config the logformat in a conditional statement?

Thanks,
Marcello
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: 214
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