Welcome! Log In Create A New Profile

Advanced

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

January 27, 2014 10:28AM
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 logs/error.log.

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

Thank you.
Subject Author Posted

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

Shohreh January 27, 2014 08:14AM

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

Jader H. Silva January 27, 2014 09:02AM

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

Shohreh January 27, 2014 10:28AM

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

Jader H. Silva January 27, 2014 11:50AM

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

Yichun Zhang (agentzh) January 27, 2014 03:36PM

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

Shohreh January 28, 2014 06:51AM

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

Yichun Zhang (agentzh) January 28, 2014 03:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready