[Lua] "Hello, world!" from Lua file?
Yichun Zhang (agentzh)
agentzh at gmail.com
Tue Jan 28 20:18:30 UTC 2014
Hello!
On Tue, Jan 28, 2014 at 3:51 AM, Shohreh wrote:
>
> Thanks for the tip, it works. Is there a tutorial besides the following page
> about how to write Lua scripts through ngx_lua?
> http://wiki.nginx.org/HttpLuaModule
>
You can find a lot of resources on the openresty.org website:
http://openresty.org
> One other thing: I'd like / to map to index.html which contains a form, and
> the Lua script should be called as the action to handle the form. How can I
> do this?
>
There're various ways to do this.
The simplest way is to define a dedicated location (say, location =
/post) for the POST/GET target of your HTML form.
Regards,
-agentzh
More information about the nginx
mailing list