title: "set" directive is not allowed here
body: <p>I am trying to follow this example here- <a href="https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a#file-nginx-conf" rel="noreferrer">https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a#file-nginx-conf</a> but getting error-  <code>"set" directive is not allowed here</code></p>
  
  <p>what am I doing wrong? Note that I am using openresty and invoking nginx as- </p>
  
  <pre><code>nginx -p `pwd`/ -c conf/nginx.conf 
  </code></pre>
  
  <p>The context of my nginx.conf matches exactly as <a href="https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a#file-nginx-conf" rel="noreferrer">https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a#file-nginx-conf</a> </p>
  
  <p>If I move the set variable to server section, I no longer get that error but a new error- </p>
  
  <pre><code>nginx: [emerg] unknown "resp_body" variable
  </code></pre>