Welcome! Log In Create A New Profile

Advanced

Re: set directive at http level

Valentin V. Bartenev
August 09, 2017 05:06PM
On Wednesday 09 August 2017 23:17:13 Sorin Manole wrote:
> Hello,
>
> Do you think there is a problem in making the set directive available
> at http level (right now it's only server and lower). This would allow
> the usage of variables defined (and overridden in a lower config
> level) by set in directives like "map" and "log_format".
>
> Thanks.

1. The "set" directive is an instruction of the "rewrite" module.
If you learn how it works, you will realize that "set" on the
"http" level has no sense.

Please, take a look at the "rewrite" module documentation:
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html

2. There's no problem in using variables defined by a "set" directive
in "map" or "log_format" directives. That's already allowed.


wbr, Valentin V. Bartenev

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

set directive at http level

Sorin Manole 562 August 09, 2017 04:20PM

Re: set directive at http level

Valentin V. Bartenev 328 August 09, 2017 05:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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