Hello!
2016-01-19 1:37 GMT-08:00 Guanglin Lv:
> 今天想把之前配置文件里使用的content_by_lua全部替换为content_by_lua_block,可是遇到一个很奇葩的问题:
>
>>
>> [01:21 root@lv-build:/opt/router/openresty] # ./nginx/sbin/nginx -t
>> nginx: [emerg] Lua code block missing the "}" character in
>> /opt/router/openresty/nginx/conf/vhosts/t.conf:6
貌似你的 OpenResty 版本有些老,撞到了一个已经修复了的老 bug. 建议尝试最新的 OpenResty 1.9.7.1 正式版或者
1.9.7.2 RC1.
Regards,
-agentzh