Use nginx to call shell script - simplest way?
agentzh
agentzh at gmail.com
Thu Mar 10 06:38:52 MSK 2011
On Thu, Mar 10, 2011 at 4:39 AM, John Moore <grails at 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
More information about the nginx
mailing list