Ngx_openresty mainline version released

Hello guys!

I am happy to announce that the new mainline version of ngx_openresty,, is now released:

Special thanks go to all the contributors for making this happen!

Below is the complete change log for this release, as compared to the
last (mainline) release,

  • upgraded LuaNginxModule to 0.9.2.

    • feature: added new API function, which is
      similar to, but only returns the beginning
      index and end index (1-based) of the whole match, which is
      30% ~ 40% faster than “” for simplest regexes.

    • feature: added new API function ngx.config.prefix() to
      return the Nginx server “prefix” path.

    • bugfix: reading ngx.header.HEADER could result in Lua string
      storage corruptions. thanks Dane Knecht for the report.

    • bugfix: the “ctx” parameter table’s “pos”
      field should start from 1 instead of 0.

    • bugfix: fixed compilation errors with Nginx older than

    • bugfix: localizing the coroutine.* API functions in
      init_by_lua* for future use in contexts like content_by_lua*
      might hang the request. thanks James Hurst for the report.

  • upgraded SrcacheNginxModule to 0.24.

    • bugfix: fixed compilation errors with Nginx older than
  • bugfix: applied the cache_manager_exit patch to the Nginx core
    to fix an issue when the cache manager process is shutting down.

The HTML version of the change log with some helpful hyper-links can
be browsed here:

OpenResty (aka. ngx_openresty) is a full-fledged web application
server by bundling the standard Nginx core, lots of 3rd-party Nginx
modules and Lua libraries, as well as most of their external
dependencies. See OpenResty’s homepage for details:

We have run extensive testing on our Amazon EC2 test cluster and
ensured that all the components (including the Nginx core) play well
together. The latest test report can always be found here:

Have fun!