Francis Daly
August 02, 2019 10:02AM
On Fri, Aug 02, 2019 at 04:34:37AM -0400, cello86@gmail.com wrote:

Hi there,

> I need to use if to configure some behavior during the ssl client
> authentication because it's enabled at server block and we need to exclude
> some locations from the authentication.

The report I thought I was responding to was that a variable that is
"set" inside an "if" inside a "location", does not appear to have the
"set" value outside that "if" (for the access_log directive).

In that case, defining the variable in a "map" at "http" level and only
referring to it in the access_log directive, should Just Work.

If it doesn't work for you, then I guess you'll need to find some
alternative.

Good luck with it,

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: 306
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