[Lua] "Hello, world!" from Lua file?

Shohreh nginx-forum at nginx.us
Mon Jan 27 15:28:02 UTC 2014

Thanks for the tip.

After editing nginx.conf thusly...
location / {
    root   html;
    index  index.html index.htm;
    content_by_lua_file html/hello.lua;
    add_header Content-Type text/plain;

... the script simply displays an empty page, with no error in

To avoid bothering you guys with newbie questions, is there a tutorial to
get started with ngx_lua?

Thank you.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246864,246870#msg-246870

More information about the nginx mailing list