lua返回服务器信息

时间:2015-05-14 08:34:45   收藏:0   阅读:175

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 ));

 

技术分享

原文:http://www.cnblogs.com/littlehb/p/4502309.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!