openresty的lua_package_path

Yishto 2021-08-20 21:47:14
Categories: Tags:

lua package path 设置方法:

https://www.cnblogs.com/mentalidade/p/6958326.html

获取请求方法 GET、POST :
local request_method = ngx.var.request_method
print(request_method)

access_by_lua 和 content_by_lua 区别:

1.二者是nginx对于请求的不同处理阶段

2.access_by_lua在请求访问阶段处理,用于访问控制,适用于http、server、location、location if。

3.content_by_lua是内容处理器,接受请求并输出响应,适用于location、location if。

nginx 变量使用:

https://blog.csdn.net/u014296316/article/details/80973530

Nginx服务器中使用lua获取get或post参数:

https://blog.csdn.net/xiejunna/article/details/70738853

Lua中判断table是否为空:

https://blog.csdn.net/wxy15979115440/article/details/51208273

lua_shared_dict:

https://blog.csdn.net/xiangjie256/article/details/84895717

https://blog.csdn.net/weiyuefei/article/details/38487475