Use nginx to call shell script - simplest way?

agentzh agentzh at
Thu Mar 10 06:38:52 MSK 2011

On Thu, Mar 10, 2011 at 4:39 AM, John Moore <grails at> 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 ''
    tar -xzvf ngx_openresty-
    cd ngx_openresty-
    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!


[1] ngx_openresty project page:

More information about the nginx mailing list