试了很多方法,都没有实现。
看了文档以后。我英文一般可能理解有问题 试了两种方法都不行:
1. location /file 下是lua_code_cache on (content_by_lua_file方式)
location /up 下是lua_code_cache off (content_by_lua_file方式)
修改lua文件后。先发送 /up 请求。再发生 /file 发现
/file 的请求还是旧code文件。
2 把 location /up 改成 rewrite_by_lua_file
还是没有解决
请问我如何 ,或者使用什么机制 可以实现我的想法。。
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html