Hello!
2012/9/17 tao.zhou2009:
>
> 7:26 AM tao.zhou2009: 好啊。你的那个基于nginx的lua框架开发web已经比较完备了吗?
> 7:29 AM 有 tutorial 了吗?
> 7:32 AM http://openresty.org/cn/index.html 看了下示例,要把lua代码写在 conf 里面啊。
> 7:33 AM http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-enuk.pdf
> 看到这个了。
> 7:40 AM 只是不明白,为什么一定要把lua代码放在conf里面? 为了访问 conf 里的东东?
当然并不一定把 Lua 代码写在 nginx.conf 里面了,ngx_lua 模块不是支持 rewrite_by_lua_file,
access_by_lua_file, content_by_lua_file, log_by_lua_file,
header_filter_by_lua_file, body_filter_by_lua_file, init_by_lua_file
这些 *_by_lua_file 配置指令么?
教程里的示例直接内联 Lua 代码到 nginx.conf 中只是为了方便起见,毕竟那些 Lua 代码都很简单。
同时抄送给 openresty 邮件组:http://groups.google.com/group/openresty
建议把这样的问题直接发送到该邮件列表,毕竟并不含有敏感信息 :)
多谢合作!
Best regards,
-agentzh