
Lua+Openresty
ycb1689
这个作者很懒,什么都没留下…
展开
-
OpenResty连接Mysql
openresty连接mysql lua-resty-mysql模块的官方文档地址: https://github.com/openresty/lua-resty-mysql lua-resty-mysql - Lua MySQL client driver for ngx_lua based on the cosocket API lua-resty-mysql模块是基于cosocket A...原创 2019-02-28 11:54:01 · 638 阅读 · 0 评论 -
Nginx服务器中使用lua获取get或post参数
--Nginx服务器中使用lua获取get或post参数 local request_method = ngx.var.request_method local args = nil local param = nil local param2 = nil --获取参数的值 if "GET" == request_method then args = ngx.req.get_uri_ar...转载 2019-03-01 11:17:16 · 3350 阅读 · 0 评论 -
nginx配置详解及如何解决跨域、GEO白名单、限速、限流(防止DDOS攻击)
本配置中有些功能是在window下测试,而由于windows下nginx好像对有些功能有限制,所以只做了名词功能标注,功能注释了 ##定义nginx运行的用户各用户组 #user nobody; ##nginx进程数,建议设置与cpu核心数一致 worker_processes 1; #windows下好像不支持 #worker_cpu_affinity 00000001 00000010...原创 2019-03-30 17:53:34 · 1388 阅读 · 0 评论