| From | Sent On | Attachments |
|---|---|---|
| John Moore | Mar 8, 2011 4:07 am | |
| agentzh | Mar 8, 2011 4:19 am | |
| António P. P. Almeida | Mar 8, 2011 10:59 am | |
| John Moore | Mar 9, 2011 10:42 am | |
| Richard Kearsley | Mar 9, 2011 11:15 am | |
| John Moore | Mar 9, 2011 12:39 pm | |
| agentzh | Mar 9, 2011 7:38 pm | |
| agentzh | Mar 9, 2011 7:52 pm | |
| Elena Zwetkow | Mar 10, 2011 12:16 am | |
| agentzh | Mar 10, 2011 12:28 am | |
| Elena Zwetkow | Mar 10, 2011 1:01 am | |
| agentzh | Mar 10, 2011 1:33 am | |
| Alexander Kunz | Mar 15, 2011 3:14 pm | |
| agentzh | Mar 15, 2011 7:28 pm | |
| Alexander Kunz | Mar 16, 2011 12:22 am | |
| agentzh | Mar 16, 2011 12:36 am |
| Subject: | Re: Use nginx to call shell script - simplest way? | |
|---|---|---|
| From: | agentzh (agen...@gmail.com) | |
| Date: | Mar 9, 2011 7:38:23 pm | |
| List: | ru.sysoev.nginx | |
On Thu, Mar 10, 2011 at 4:39 AM, John Moore <gra...@jmsd.co.uk> wrote:
Sure, the actual OS call is dead simple. Setting nginx up to use lua looks a little trickier than what I needed to do with thttpd,
I'm not sure which OS you are in, but setting up ngx_openresty [1] should be as simple as
wget 'http://agentzh.org/misc/nginx/ngx_openresty-0.8.54.1.tar.gz' tar -xzvf ngx_openresty-0.8.54.1.tar.gz cd ngx_openresty-0.8.54.1/ ./configure make make install vi /path/to/my/nginx.conf # edit it! /usr/local/openresty/nginx/sbin/nginx -c /path/to/my/nginx.conf # start it!
The ngx_openresty bundle contains nginx 0.8.54, the standard lua 5.1 interperter, the ngx_lua module, and many other goodies. It has been tested on both Linux and Solaris, but should also work in other OS's like Mac OS X and *BSD. Feedback welcome!
Cheers, -agentzh
[1] ngx_openresty project page: https://github.com/agentzh/ngx_openresty
_______________________________________________ nginx mailing list ngi...@nginx.org http://nginx.org/mailman/listinfo/nginx





