![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
openresty
一只想飞的追梦者
这个作者很懒,什么都没留下…
展开
-
openresty学习之lua和Nginx的整合
想要整合,必须先要明确自己的Nginx安装目录,nginx在openresty中体现代理的作用。我安装目录是/usr/local/Cellar/openresty/1.13.6.1/nginx1.首先我们修改Nginx下的conf下的nginx.conf文件http { default_type application/octet-stream; lua_package_path...原创 2018-03-02 10:37:02 · 987 阅读 · 0 评论 -
openresty学习之get请求
1.修改你的加载的.conf文件,我这里是用example.conf。location /lua_var { default_type 'text/plain'; content_by_lua_block { ngx.say(ngx.var.arg_a) } }内容很简单,不做解释。运行location /lua_var?a=...原创 2018-03-02 11:50:36 · 907 阅读 · 0 评论