Welcome! Log In Create A New Profile

Advanced

Re: MAP location in conf file

Aziz Rozyev
December 29, 2017 05:16AM
check docs:
http://nginx.org/en/docs/http/ngx_http_map_module.html

every directive description has a “Context” field, where you may find
in which configuration context you can put the directive.

regarding your questions, yes, you actually have to put it on the very top - in ‘http'
context.

br,
Aziz.





> On 29 Dec 2017, at 04:06, lists@lazygranch.com wrote:
>
> Presently I'm putting maps in the server location. Can they be put in
> the very top to make them work for all servers? If not, I can just make
> the maps into include files and insert as needed, but maybe making the
> map global is more efficient.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

MAP location in conf file

gariac December 28, 2017 10:08PM

Re: MAP location in conf file

Aziz Rozyev December 29, 2017 05:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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