![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lua
amoxuk
玲珑骰子安红豆,入骨相思知不知。
展开
-
NGINX + LUA实现复杂的控制 ngx_lua内置的变量
原文地址:http://outofmemory.cn/code-snippet/14396/nginx-and-lua安装lua_nginx_module 模块lua_nginx_module 可以一步步的安装,也可以直接用淘宝的OpenRestyCentos和debian的安装就简单了。。这里说下freebsd的安装:fetch http://www.lua.org/ft...转载 2018-04-14 20:22:34 · 6197 阅读 · 0 评论 -
nginx+lua 限制文件类型 请求方式 实现图片上传
还可以加redis防止频繁请求local upload = require "upload"local method = ngx.var.request_methodif method ~='POST' then ngx.say("method is not allowed") returnendlocal chunk_size = 4096local form ...原创 2018-04-14 21:04:08 · 2055 阅读 · 0 评论