<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 30, 2017 at 9:45 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br></blockquote><div><br></div><div>Hi!</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The error in question will only appear if you don't have the<br>
variable defined at all, that is, it is not used anywhere in your<br>
configuration. Using it at least somewhere will resolve the<br>
error. That is, just add something like<br>
<br>
set $robots off;<br>
<br>
anywhere in your configuration as appopriate (for example, in the<br>
default server{} block).<br>
<br>
Once you will be able to start nginx, you'll start getting<br>
warnings when the variable is used uninitialized, e.g.:<br>
<br>
... [warn] ... using uninitialized "robots" variable ...<br>
<br>
These warnings can be switched off using the<br>
uninitialized_variable_warn directive, see<br>
<a href="http://nginx.org/r/uninitialized_variable_warn" rel="noreferrer" target="_blank">http://nginx.org/r/<wbr>uninitialized_variable_warn</a>.</blockquote><div><br></div><div>That worked perfectly! Thank you very much!</div></div></div></div>