1
2
3
4
5
    location /lua {
                default_type text/html;
                content_by_lua 'ngx.say("User-Agent:",ngx.req.get_headers()["User-Agent"])';

        }