nginx lua脚本输出文件内容

  sre
content_by_lua '
    local_file = "/path..."
    local f = io.open(file, "rb")
    local content = f:read("*all")
    f:close()
    ngx.print(content)
';

LEAVE A COMMENT

Captcha Code