Thanks for the tip, it works. Is there a tutorial besides the following
page
about how to write Lua scripts through ngx_lua?
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?
This calls the script any time I hit the root directory:
Thanks for the tip, it works. Is there a tutorial besides the following page
about how to write Lua scripts through ngx_lua? Lua | NGINX
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.