openresty学习之get请求,openrestyget请求


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=321

相关内容

    暂无相关文章