lua返回服务器信息

ngx.header.content_type = "text/plain";

ngx.say(tostring(ngx.var.request_uri));
ngx.say(tostring(ngx.var.host));
ngx.say(tostring(ngx.var.server_port));
ngx.say(tostring(ngx.var.scheme ));

原文地址:https://www.cnblogs.com/littlehb/p/4502309.html