【发布时间】:2015-01-08 14:07:11
【问题描述】:
我在这里尝试遵循此示例-https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a#file-nginx-conf 但出现错误-"set" directive is not allowed here
我做错了什么?请注意,我正在使用 openresty 并调用 nginx as-
nginx -p `pwd`/ -c conf/nginx.conf
我的 nginx.conf 的上下文完全匹配 https://gist.github.com/morhekil/1ff0e902ed4de2adcb7a#file-nginx-conf
如果我将 set 变量移动到服务器部分,我将不再收到该错误,而是一个新错误-
nginx: [emerg] unknown "resp_body" variable
【问题讨论】:
标签: variables nginx configuration