Overridable header values (with map?)

Brandon Mintern mintern at everlaw.com
Thu Nov 30 18:14:37 UTC 2017


On Thu, Nov 30, 2017 at 9:45 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
>

Hi!

The error in question will only appear if you don't have the
> variable defined at all, that is, it is not used anywhere in your
> configuration.  Using it at least somewhere will resolve the
> error.  That is, just add something like
>
>     set $robots off;
>
> anywhere in your configuration as appopriate (for example, in the
> default server{} block).
>
> Once you will be able to start nginx, you'll start getting
> warnings when the variable is used uninitialized, e.g.:
>
> ... [warn] ... using uninitialized "robots" variable ...
>
> These warnings can be switched off using the
> uninitialized_variable_warn directive, see
> http://nginx.org/r/uninitialized_variable_warn.


That worked perfectly! Thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171130/6146dd50/attachment.html>


More information about the nginx mailing list