Welcome! Log In Create A New Profile

Advanced

Re: Our nginx module development roadmap (draft)

November 27, 2010 07:34AM
Can we use ngx_lua to do access control? security check ?
I mean some feature of mod_security.


2010/11/27 agentzh <agentzh@gmail.com>:
> On Sat, Nov 27, 2010 at 8:06 PM, Delta Yeh <delta.yeh@gmail.com> wrote:
>> can  lua be introduced into ngx_proxy_more, so there can what we can with lua
>> when proxy a request?
>>
>
> The standard ngx_proxy module can already be used together with
> ngx_lua, so will ngx_proxy_more :)
>
> Actually any nginx modules can be used with ngx_lua.
>
> There's mainly 5 ways:
>
> 1. Use set_by_lua at rewrite phase, and use other content handler
> modules like ngx_proxy and ngx_fastcgi.
>
> 2. Use content_by_lua as the content handler to generate contents, and
> use output filter modules, like ngx_headers and ngx_ctpp2 to process
> the outputs later.
>
> 3. Use the ngx.location.capture() call from within Lua code to make
> nginx subrequests to other nginx locations configured by ngx_drizzle,
> ngx_postgres, ngx_proxy, and any other content handler modules.
>
> 4. Use the ngx.exec() call from within Lua (content_by_lua) to make
> internal redirection to other locations. (Remember, it's not a
> subrequest, rather, a "goto", which never comes back.)
>
> 5. Invoke other nginx module's config directives' computation at
> runtime directly from within Lua by means of the ndk.set_var.DIRECTIVE
> call. Configure directives used this way are limited to those
> implemented atop NDK's set_var submodules' ndk_set_var_value
> interface.
>
> Please check out the ngx_lua documentation for more details:
>
>    https://github.com/chaoslawful/lua-nginx-module/
>
> Our focus has been on making ngx_lua and the Lua programming language
> the right glue in the whole nginx ecosystem, and helping Lua replace
> PHP in more and more web applications that require outstanding
> performance.
>
> Cheers,
> -agentzh
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel
>

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Our nginx module development roadmap (draft)

agentzh 3273 November 26, 2010 05:10AM

Re: Our nginx module development roadmap (draft)

Mr.Hien 1699 November 26, 2010 06:46AM

Re: Our nginx module development roadmap (draft)

mike 1521 November 26, 2010 06:54AM

Re: Our nginx module development roadmap (draft)

agentzh 1101 November 27, 2010 04:30AM

Re: Our nginx module development roadmap (draft)

mike 1612 November 27, 2010 04:58AM

Re: Our nginx module development roadmap (draft)

agentzh 1168 November 27, 2010 06:56AM

Re: Our nginx module development roadmap (draft)

deltay 1236 November 27, 2010 12:52AM

Re: Our nginx module development roadmap (draft)

agentzh 1044 November 27, 2010 04:04AM

Re: Our nginx module development roadmap (draft)

deltay 1187 November 27, 2010 07:08AM

Re: Our nginx module development roadmap (draft)

agentzh 1051 November 27, 2010 07:20AM

Re: Our nginx module development roadmap (draft)

deltay 1344 November 27, 2010 07:34AM

Re: Our nginx module development roadmap (draft)

agentzh 1063 November 27, 2010 07:38AM

Re: Our nginx module development roadmap (draft)

deltay 1173 November 27, 2010 07:54AM

Re: Our nginx module development roadmap (draft)

agentzh 1259 November 27, 2010 08:38AM

Re: Our nginx module development roadmap (draft)

Weibin Yao 1155 November 28, 2010 09:44PM

Re: Our nginx module development roadmap (draft)

deltay 1522 May 29, 2011 12:52PM

Re: Our nginx module development roadmap (draft)

agentzh 993 May 30, 2011 01:42AM

Re: Our nginx module development roadmap (draft)

deltay 1481 May 30, 2011 05:36AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 110
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready