The http block in nginx.conf contains the following:
auth_basic $development_exceptions;
In an included file the geo module is used to set the variable:
geo $development_exceptions {
default "Not allowed.";
1.2.3.4 "off";
}
The map module uses the user agent variable in the same included file:
map $http_user_agent $development_exceptions {
default "Not allowed.";
~*(header-text) "off";
}
However, the setting of the development exceptions variable is competing, and so when the second code is applied the first code stops doing anything.
How can both strategies be combined? In this case it might not be possible to change nginx.conf.
nginx.confwhich controls what happens?nginx.conf. If the only way to do this is throughnginx.conf, then I am interested in that solution as well, as I can make a request for it.