ngx-lua

http {
set $test 'hello world';
location {
content_by_lua '
ngx.header.content_type="text/plain";
ngx.say (ngx.var.test);
';
}
}

原文地址:https://www.cnblogs.com/xivzhou/p/14449276.html